Skip to content

Commit

Permalink
Add debug statements for docker compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
gabeiglio committed Aug 28, 2024
1 parent e8cd805 commit 099db47
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ echo DOCKER env is $(env | grep DOCKER)

COMPOSE_FILE=$1

if [ ! -f "$COMPOSE_FILE" ]; then
echo "Compose file ${COMPOSE_FILE]} does not exist"
exit 1
fi

#validate the docker compose file
docker-compose --file ${COMPOSE_FILE} config
if [ $? -ne 0 ]; then
echo "Invalid docker compose file: ${COMPOSE_FILE}"
exit 2
fi

docker-compose --file ${COMPOSE_FILE} up crdb-barrier
if [ $? -ne 0 ]; then
echo "Unable to start crdb-barrier container"
Expand Down

0 comments on commit 099db47

Please sign in to comment.