diff options
Diffstat (limited to 'tests/http/docker-main.sh')
-rwxr-xr-x | tests/http/docker-main.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/http/docker-main.sh b/tests/http/docker-main.sh new file mode 100755 index 00000000..29cdced9 --- /dev/null +++ b/tests/http/docker-main.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin + +/zerotier-one -d >>zerotier-one.out 2>&1 + +# Wait for ZeroTier to start and join the network +while [ ! -d "/proc/sys/net/ipv6/conf/zt0" ]; do + sleep 0.25 +done + +# Wait just a bit longer for stuff to settle +sleep 5 + +exec node --harmony /agent.js >>agent.out 2>&1 +#exec node --harmony /agent.js |