From f4aa9e465cc082d653a726c8ead95741c0463a7a Mon Sep 17 00:00:00 2001 From: jasquat Date: Wed, 14 Sep 2022 15:11:00 -0400 Subject: [PATCH] use port 7004 since mysql is on 7003 w/ burnettk --- bin/boot_server_in_docker | 2 +- bin/wait_for_server_to_be_up | 2 +- docker-compose.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/boot_server_in_docker b/bin/boot_server_in_docker index e7a5b47..e49dbea 100755 --- a/bin/boot_server_in_docker +++ b/bin/boot_server_in_docker @@ -9,7 +9,7 @@ set -o errtrace -o errexit -o nounset -o pipefail port="${CONNECTOR_PROXY_STATUS_IM_PORT:-}" if [[ -z "$port" ]]; then - port=7003 + port=7004 fi workers=3 diff --git a/bin/wait_for_server_to_be_up b/bin/wait_for_server_to_be_up index be9eafb..10a8106 100755 --- a/bin/wait_for_server_to_be_up +++ b/bin/wait_for_server_to_be_up @@ -14,7 +14,7 @@ fi echo "waiting for backend to come up..." attempts=0 -while [[ "$(curl -s -o /dev/null -w '%{http_code}' "http://localhost:7003/v1.0/status")" != "200" ]]; do +while [[ "$(curl -s -o /dev/null -w '%{http_code}' "http://localhost:7004/v1.0/status")" != "200" ]]; do if [[ "$attempts" -gt "$max_attempts" ]]; then >&2 echo "ERROR: Server not up after $max_attempts attempts. There is probably a problem" exit 1 diff --git a/docker-compose.yml b/docker-compose.yml index 86806ed..ad1f950 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,10 +11,10 @@ services: - FLASK_DEBUG=0 - FLASK_SESSION_SECRET_KEY=${FLASK_SESSION_SECRET_KEY:-super_secret_key} ports: - - "7003:7003" + - "7004:7004" network_mode: host healthcheck: - test: curl localhost:7003/liveness --fail + test: curl localhost:7004/liveness --fail interval: 10s timeout: 5s retries: 20