Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions integration-tests-ex/cases/cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,20 +165,31 @@ function docker_file {
# Print environment for debugging
#env

# Determine if docker-compose is available. If not, assume Docker supports
# the compose subcommand
set +e
if which docker-compose > /dev/null
then
DOCKER_COMPOSE='docker-compose'
else
DOCKER_COMPOSE='docker compose'
fi
set -e

case $CMD in
"-h" )
usage
;;
"help" )
usage
docker-compose help
$DOCKER_COMPOSE help
;;
"up" )
category $*
echo "Starting cluster $DRUID_INTEGRATION_TEST_GROUP"
build_shared_dir
cd $CLUSTER_DIR
docker-compose `docker_file` up -d
$DOCKER_COMPOSE `docker_file` up -d
# Enable the following for debugging
#show_status
;;
Expand All @@ -192,12 +203,11 @@ case $CMD in
# Enable the following for debugging
#show_status
cd $CLUSTER_DIR
echo docker-compose `docker_file` $CMD
docker-compose `docker_file` $CMD
$DOCKER_COMPOSE `docker_file` $CMD
;;
"*" )
category $*
cd $CLUSTER_DIR
docker-compose `docker_file` $CMD
$DOCKER_COMPOSE `docker_file` $CMD
;;
esac