launch multiple test weaves
This commit is contained in:
1 parent
24f3634254
commit
a68d444c33
1 file changed
+22
Executable
+22
@@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
N_WEAVES=${NUM_WEAVES:-29}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
launch)
|
||||||
|
PREV=
|
||||||
|
for i in $(seq 1 $N_WEAVES); do
|
||||||
|
ID=$(WEAVE_CONTAINER_NAME=weave$i ./weave --local test-launch --connlimit=$N_WEAVES $PREV)
|
||||||
|
status=$(docker inspect --format='{{.State.Running}} {{.NetworkSettings.IPAddress}}' $ID)
|
||||||
|
PREV="${status#true }"
|
||||||
|
echo $ID $PREV
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
for i in $(seq 1 $N_WEAVES); do
|
||||||
|
echo Stopping weave$i
|
||||||
|
WEAVE_CONTAINER_NAME=weave$i ./weave --local stop
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
esac
|
||||||
Reference in new issue
Block a user