Skip to content

Commit

Permalink
add conditional for compose command per compose version
Browse files Browse the repository at this point in the history
  • Loading branch information
kahnwong committed Sep 24, 2024
1 parent 2c3a895 commit ace4325
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions launch-playground.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,16 @@ case "${1}" in
esac

cd ${playground_dir}
docker-compose up ${components}

# Clean Docker containers when you quit this script
docker-compose down
isComposeV1=`which docker-compose`
if [ $? -eq 0 ]; then
docker-compose up ${components}

# Clean Docker containers when you quit this script
docker-compose down
else
docker compose up ${components}

# Clean Docker containers when you quit this script
docker compose down
fi

0 comments on commit ace4325

Please sign in to comment.