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

@@ -4,7 +4,7 @@ set -e
LOCAL_IMAGE=sslproxy
TAG=2.2.${BUILD_NUMBER:-dev}
TAG=2.1
#TAG=2.1
REMOTE_IMAGE=dkregistry.xai-corp.net:5000/${LOCAL_IMAGE}:${TAG}
APP_NAME=sslproxy_app
@@ -25,10 +25,10 @@ function deploy() {
-c docker-compose.prod.yml \
sslproxy
docker stack ps sslproxy
sleep 2
docker service ps --filter "desired-state=Running" sslproxy_app
docker stack ps sslproxy
# docker service ps --filter "desired-state=Running" sslproxy_app
wait_for_completed
}
@@ -41,6 +41,7 @@ wait_for_completed() {
sleep 3
state=$(docker service inspect sslproxy_app | jq -r .[0].UpdateStatus.State)
done
sleep 5
}
function deploy_test() {
@@ -57,8 +58,8 @@ function deploy_test() {
function deploy_save() {
#tag as latest
docker tag "$REMOTE_IMAGE" latest
docker push latest
docker tag "$REMOTE_IMAGE" "${REMOTE_IMAGE//${TAG}/latest}"
docker push "${REMOTE_IMAGE//${TAG}/latest}"
}
dc() {