File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -336,6 +336,8 @@ runs:
336336 exit 1
337337 fi
338338
339+ docker compose -f "${GITHUB_ACTION_PATH}/docker-compose.yml" config
340+
339341 echo "Starting the auth service and Envoy proxy..."
340342 docker compose -f "${GITHUB_ACTION_PATH}/docker-compose.yml" up -d
341343
Original file line number Diff line number Diff line change @@ -43,8 +43,6 @@ services:
4343 volumes :
4444 - ${PATH_CERTS_DIR}:/tls
4545 - ${GITHUB_ACTION_PATH}/envoy.yaml:/etc/envoy/envoy.yaml
46- - ${GITHUB_ACTION_PATH}/json.lua:/etc/envoy/json.lua
47- - ${GITHUB_ACTION_PATH}/github_oidc.lua:/etc/envoy/github_oidc.lua
4846 command : >
4947 /usr/local/bin/envoy -c /etc/envoy/envoy.yaml --log-level
5048 ${PROXY_LOG_LEVEL} ${ENVOY_EXTRA_ARGS}
@@ -53,4 +51,5 @@ services:
5351
5452networks :
5553 gap-network :
54+ # name: ${GAP_NAME}-network
5655 driver : bridge
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ container_name=" ${GAP_NAME} -authz"
4+ echo " Monitoring health status of $container_name ..."
5+
6+ while true ; do
7+ status=$( docker inspect --format=' {{.State.Health.Status}}' $container_name 2> /dev/null)
8+
9+ if [ $? -ne 0 ]; then
10+ echo " Container $container_name not found"
11+ else
12+ echo " $( date +%T) - Health status: $status "
13+
14+ # Get last health check result
15+ docker inspect --format=' {{json .State.Health.Log}}' $container_name | jq -r ' .[-1]' 2> /dev/null
16+ echo " -----------------------"
17+ fi
18+
19+ sleep 2
20+ done
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ export GAP_NAME=" gap-test"
34export AUTH_SERVICE_PORT=" 9001"
45export GITHUB_OIDC_TOKEN_HEADER_NAME=" TEST"
56export GITHUB_OIDC_HOSTNAME=" TEST"
@@ -13,4 +14,4 @@ export WEBSOCKETS_PROXY_PORT="9004"
1314export ENVOY_PROXY_IMAGE=" envoyproxy/envoy:v1.33.0"
1415export GITHUB_ACTION_PATH=" ./"
1516
16- docker compose up auth
17+ docker compose config
You can’t perform that action at this time.
0 commit comments