Skip to content

Commit f4a7879

Browse files
committed
rebase upstream/main
1 parent a8b209f commit f4a7879

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

playground.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ testDocker() {
3838
}
3939

4040
checkCompose() {
41-
isExist=$(which docker-compose)
42-
if [ $isExist ]; then
41+
isExist=$(docker --help | grep compose)
42+
if [[ $isExist ]]; then
4343
true # Placeholder, do nothing
4444
else
45-
echo "ERROR: No docker service environment found. Please install docker-compose."
45+
echo "ERROR: No docker service environment found. Please install compose plugin first."
4646
exit
4747
fi
4848
}
@@ -81,23 +81,23 @@ start() {
8181

8282
logSuffix=$(date +%Y%m%d%H%m%s)
8383
if [ "$enableRanger" == true ]; then
84-
docker-compose -f docker-compose.yaml -f docker-enable-ranger-hive-override.yaml up --detach
84+
docker compose -f docker-compose.yaml -f docker-enable-ranger-hive-override.yaml up --detach
8585
else
86-
docker-compose up --detach
86+
docker compose up --detach
8787
fi
8888

8989
docker compose logs -f >${playground_dir}/playground-${logSuffix}.log 2>&1 &
9090
echo "Check log details: ${playground_dir}/playground-${logSuffix}.log"
9191
}
9292

9393
status() {
94-
docker-compose ps -a
94+
docker compose ps -a
9595
}
9696

9797
stop() {
9898
echo "INFO: Stopping the playground..."
9999

100-
docker-compose down
100+
docker compose down
101101
if [ $? -eq 0 ]; then
102102
echo "INFO: Playground stopped!"
103103
fi

0 commit comments

Comments
 (0)