Skip to content

Commit

Permalink
BITOP-4128: Docker compose plugin doesn't have '-v' option (apache#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamasakisua authored Jun 19, 2024
1 parent b8448e4 commit 9bd66b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion provisioner/docker/docker-hadoop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,11 @@ env-check() {
echo "Check docker:"
docker -v || exit 1
echo "Check docker-compose:"
$DOCKER_COMPOSE_CMD -v || exit 1
if [ "$DOCKER_COMPOSE_CMD" == "docker-compose" ]; then
$DOCKER_COMPOSE_CMD -v || exit 1
elif [ "$DOCKER_COMPOSE_CMD" == "docker compose" ]; then
$DOCKER_COMPOSE_CMD version || exit 1
fi
echo "Check ruby:"
ruby -v || exit 1
}
Expand Down

0 comments on commit 9bd66b3

Please sign in to comment.