Skip to content

Commit

Permalink
Back to the original
Browse files Browse the repository at this point in the history
  • Loading branch information
aulme committed Feb 14, 2025
1 parent df66e76 commit d1cd203
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions scripts/prepare_resources_for_e2e_docker_compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,23 +109,7 @@ mkdir -p "${OPTOUT_MOUNT}" && chmod 777 "${OPTOUT_MOUNT}"
chmod 777 "${CORE_RESOURCE_FILE_DIR}/init-aws.sh"
chmod 777 "${OPTOUT_RESOURCE_FILE_DIR}/init-aws.sh"

set +e # Disable exit on error so we can grab docker logs
docker compose --profile "${OPERATOR_TYPE}" -f "${DOCKER_COMPOSE_FILE}" up -d --wait
docker_exit_code=$?
set -e

if [ $docker_exit_code -ne 0 ]; then
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

exit $docker_exit_code
fi

docker ps -a
docker network ls

0 comments on commit d1cd203

Please sign in to comment.