6e4b325b35
* First draft of test dockerfile build * Test dockerfile, build works, container runs and cluster tests go through * Removed fifo for output * renaming dockerfile * Adding functionality for test 12 Added scripts and entrypoint mods to the testing docker image to allow for random shut down and startup (both SIGSTOP and SIGINT) of the ipfs-cluster-service. * test docker image ready for tests 12 and 13
13 lines
271 B
Bash
Executable File
13 lines
271 B
Bash
Executable File
#! /bin/bash
|
|
|
|
## Wait for cluster service process to exist and the stop the
|
|
## killer
|
|
DONE=1
|
|
while [ $DONE = 1 ]; do
|
|
sleep 0.1
|
|
if [ $(pgrep -f ipfs-cluster-service) ]; then
|
|
kill -STOP $(cat /data/ipfs-cluster/random-killer-pid)
|
|
DONE=0
|
|
fi
|
|
done
|