Skip to content

Commit f222aa7

Browse files
committed
test: fix tls
1 parent f706442 commit f222aa7

4 files changed

Lines changed: 25 additions & 3 deletions

File tree

actions/setup-gap/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

actions/setup-gap/docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

5452
networks:
5553
gap-network:
54+
# name: ${GAP_NAME}-network
5655
driver: bridge
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

actions/setup-gap/test/test-up.sh

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#! /bin/bash
22

3+
export GAP_NAME="gap-test"
34
export AUTH_SERVICE_PORT="9001"
45
export GITHUB_OIDC_TOKEN_HEADER_NAME="TEST"
56
export GITHUB_OIDC_HOSTNAME="TEST"
@@ -13,4 +14,4 @@ export WEBSOCKETS_PROXY_PORT="9004"
1314
export ENVOY_PROXY_IMAGE="envoyproxy/envoy:v1.33.0"
1415
export GITHUB_ACTION_PATH="./"
1516

16-
docker compose up auth
17+
docker compose config

0 commit comments

Comments
 (0)