File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ testDocker() {
38
38
}
39
39
40
40
checkCompose () {
41
- isExist=$( which docker- compose)
42
- if [ $isExist ]; then
41
+ isExist=$( docker --help | grep compose)
42
+ if [[ $isExist ] ]; then
43
43
true # Placeholder, do nothing
44
44
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 ."
46
46
exit
47
47
fi
48
48
}
@@ -81,23 +81,23 @@ start() {
81
81
82
82
logSuffix=$( date +%Y%m%d%H%m%s)
83
83
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
85
85
else
86
- docker- compose up --detach
86
+ docker compose up --detach
87
87
fi
88
88
89
89
docker compose logs -f > ${playground_dir} /playground-${logSuffix} .log 2>&1 &
90
90
echo " Check log details: ${playground_dir} /playground-${logSuffix} .log"
91
91
}
92
92
93
93
status () {
94
- docker- compose ps -a
94
+ docker compose ps -a
95
95
}
96
96
97
97
stop () {
98
98
echo " INFO: Stopping the playground..."
99
99
100
- docker- compose down
100
+ docker compose down
101
101
if [ $? -eq 0 ]; then
102
102
echo " INFO: Playground stopped!"
103
103
fi
You can’t perform that action at this time.
0 commit comments