...
 
Commits (2)
......@@ -13,3 +13,8 @@ docker secret rm secret-zero # multi_a multi_b multi_json multi_json_v1 multi_js
plugin_service=${plugin_name/*\//}
plugin_service=${plugin_service/:*/}
docker service rm ${plugin_service}
while docker plugin inspect ${plugin_name} > /dev/null
do
echo "waiting for plugin to be uninstalled"
sleep 1
done
......@@ -6,11 +6,14 @@ export remote=${remote:-${plugin_name}}
./cleanup.sh
installer
sleep 10
until docker plugin inspect ${plugin_name} > /dev/null
do
echo "waiting for plugin to be installed"
sleep 1
done
docker node ls --filter role=worker -q | wc -l | grep -q 0 && snitch_role=manager || snitch_role=worker
export snitch_role
docker stack deploy --compose-file docker-compose.yml demo
docker-stack-waiter -c docker-compose.yml demo
docker service logs -f demo_snitch
exit $?