start_zoe.sh 481 Bytes
Newer Older
1 2
#!/bin/bash

3 4 5
echo "The images for this script are not yet available on the Docker Hub"
exit 1

6 7 8 9 10 11 12 13 14
if [ ! `which tmux` ]; then
	echo "This script uses the tmux terminal multiplexer, but it is not available in PATH"
	exit 1
fi

# Address for the Swarm API endpoint
SWARM_ADDRESS="swarm:2380"


15 16
sudo docker -H ${SWARM_ADDRESS} run -i -t --rm=true -e ZOE_MASTER_SWARM=${SWARM_ADDRESS} zoerepo/zoe-master
sudo docker -H ${SWARM_ADDRESS} run -i -t --rm=true zoerepo/zoe-client ./zoe-web.py