diff --git a/run.sh b/run.sh index c644919..d00c527 100644 --- a/run.sh +++ b/run.sh @@ -8,6 +8,9 @@ mvn clean install # Export the active docker machine IP export DOCKER_IP=$(docker-machine ip $(docker-machine active)) +# docker-machine doesn't exist in Linux, assign default ip if it's not set +DOCKER_IP=${DOCKER_IP:-0.0.0.0} + # Remove existing containers docker-compose stop docker-compose rm -f @@ -38,4 +41,4 @@ done docker-compose up -d # Attach to the log output of the cluster -docker-compose logs \ No newline at end of file +docker-compose logs