fix build and deploy of sslproxy

This commit is contained in:
2020-06-06 01:25:44 -04:00
parent 7175a4fb2d
commit 4439ae493d
15 changed files with 98 additions and 25 deletions

View File

@@ -0,0 +1,26 @@
#!/usr/bin/env bash
set -e
export DOCKER_HOST=${DOCKER_HOST:-'dkhost:2376'}
#container=$(docker service ps -q --filter "desired-state=Running" sslproxy_app | head -n 1)
inspect_service() {
docker service ps --filter "desired-state=Running" sslproxy_app
}
inspect_stack() {
docker stack ps --filter "desired-state=Running" sslproxy
}
inspect_containers() {
docker ps -n2
}
if [ "$1" == "service" ]; then
inspect_service
elif [ "$1" == "stack" ]; then
inspect_stack
else
inspect_containers
fi