Skip to content

Commit

Permalink
Merge pull request #146 from IABTechLab/aul-UID2-4506-print-logs-of-e…
Browse files Browse the repository at this point in the history
…rrors-in-container

Log errors in containers
  • Loading branch information
aulme authored Feb 14, 2025
2 parents afe420f + 8962ca1 commit f5fa906
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/prepare_resources_for_e2e_docker_compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,16 @@ chmod 777 "${CORE_RESOURCE_FILE_DIR}/init-aws.sh"
chmod 777 "${OPTOUT_RESOURCE_FILE_DIR}/init-aws.sh"

docker compose --profile "${OPERATOR_TYPE}" -f "${DOCKER_COMPOSE_FILE}" up -d --wait

containers=$(docker compose ps -q)

for container in $containers; do
status=$(docker inspect --format='{{.State.ExitCode}}' $container)
if [ "$status" -ne 0 ]; then
echo "Container $container exited with status $status. Logs:"
docker logs "$container"
fi
done

docker ps -a
docker network ls

0 comments on commit f5fa906

Please sign in to comment.