adjusting networks for certbot so that we can talk to the right containers

This commit is contained in:
2020-06-06 15:18:26 -04:00
parent 4439ae493d
commit 68296c8e92
11 changed files with 82 additions and 33 deletions

View File

@@ -54,6 +54,9 @@ function deploy_test() {
assertOK https xaibox.xai-corp.net
# curl -If https://git.xai-corp.net/
# curl -If -H "Host: not.xai-corp.net" https://dkhost
assertNetwork prod_ui
assertNetwork prod_tasks
}
function deploy_save() {
@@ -79,6 +82,12 @@ function assertOK() {
| tee "$LOG" | grep -P "200 OK|302 Found|403 Forbidden"
}
function assertNetwork() {
network=$1
echo -e "\033[94minspecting network\033[39m $network"
docker network inspect "$network" | jq -r .[].Containers[].Name | tee "$LOG" | grep sslproxy_app
}
function trap_exit() {
code=$?
docker service ls | grep "${APP_NAME}"