Add a pause after deploying test db containers as a temporary kludge

This commit is contained in:
James Campbell 2025-06-18 03:30:27 -04:00
parent ecb616f6d9
commit def6bab7f4
Signed by: james
GPG Key ID: 2287C33A40DC906A

View File

@ -41,6 +41,14 @@ do
# Specify the version we're testing against # Specify the version we're testing against
export PGTAG="${images["$version"]}" export PGTAG="${images["$version"]}"
# Start the db container first and wait a moment for it to initialize
# This isn't perfect, but if the health check catches PostgreSQL when it's
# first being initialized, the agent can fail to connect.
# A better solution would probably be to make the agent retry more.
docker compose up -d db
sleep 2
# Start the containers # Start the containers
docker compose up --exit-code-from=agent agent docker compose up --exit-code-from=agent agent
rc=$? rc=$?