From de6a770f06e326634c943dbea96e93ecf040c4f9 Mon Sep 17 00:00:00 2001 From: Ugo Plouviez Date: Thu, 10 Jan 2019 11:39:39 +0100 Subject: [PATCH] Add a dummy container doing nothing for one minute --- IntegrationTests/DoNothingOneMinute/Dockerfile | 4 ++++ IntegrationTests/DoNothingOneMinute/build.sh | 3 +++ .../DoNothingOneMinute/doNothingForOneMinute.sh | 16 ++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 IntegrationTests/DoNothingOneMinute/Dockerfile create mode 100755 IntegrationTests/DoNothingOneMinute/build.sh create mode 100755 IntegrationTests/DoNothingOneMinute/doNothingForOneMinute.sh diff --git a/IntegrationTests/DoNothingOneMinute/Dockerfile b/IntegrationTests/DoNothingOneMinute/Dockerfile new file mode 100644 index 00000000..a3e05ee8 --- /dev/null +++ b/IntegrationTests/DoNothingOneMinute/Dockerfile @@ -0,0 +1,4 @@ +FROM ubuntu:16.04 +COPY doNothingForOneMinute.sh /doNothingForOneMinute.sh +RUN chmod +x /doNothingForOneMinute.sh +ENTRYPOINT ["/doNothingForOneMinute.sh"] diff --git a/IntegrationTests/DoNothingOneMinute/build.sh b/IntegrationTests/DoNothingOneMinute/build.sh new file mode 100755 index 00000000..ebd21e12 --- /dev/null +++ b/IntegrationTests/DoNothingOneMinute/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker image build -f Dockerfile -t iexechub/it-donothingoneminute . diff --git a/IntegrationTests/DoNothingOneMinute/doNothingForOneMinute.sh b/IntegrationTests/DoNothingOneMinute/doNothingForOneMinute.sh new file mode 100755 index 00000000..9ac385f3 --- /dev/null +++ b/IntegrationTests/DoNothingOneMinute/doNothingForOneMinute.sh @@ -0,0 +1,16 @@ +#!/bin/bash + + +resultFile=/iexec/result.txt +consensusFile=/iexec/consensus.iexec + +mkdir /iexec +rm -f $resultFile $consensusFile + +touch $resultFile +echo "result" >> $resultFile + +touch $consensusFile +echo "consensus" >> $consensusFile + +sleep 60