adjusting networks for certbot so that we can talk to the right containers
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user