Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a dummy container doing nothing for one minute
- Loading branch information
Ugo Plouviez
committed
Jan 10, 2019
1 parent
596bc57
commit de6a770
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM ubuntu:16.04 | ||
COPY doNothingForOneMinute.sh /doNothingForOneMinute.sh | ||
RUN chmod +x /doNothingForOneMinute.sh | ||
ENTRYPOINT ["/doNothingForOneMinute.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
docker image build -f Dockerfile -t iexechub/it-donothingoneminute . |
16 changes: 16 additions & 0 deletions
16
IntegrationTests/DoNothingOneMinute/doNothingForOneMinute.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |