2017-08-07 17:24:16 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
|
2017-08-19 21:27:57 +02:00
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2017-08-08 21:52:42 +02:00
|
|
|
DOCKER_DIR=$DIR/../docker
|
2017-08-20 03:45:13 +02:00
|
|
|
if [ $# -eq 1 ]
|
|
|
|
then
|
|
|
|
DOCKER_DIR=$1
|
|
|
|
fi
|
2017-08-21 14:49:44 +02:00
|
|
|
|
|
|
|
OS="linux"
|
|
|
|
if [ "$(uname)" == "Darwin" ]
|
2017-08-20 03:45:13 +02:00
|
|
|
then
|
2017-08-21 14:49:44 +02:00
|
|
|
OS="macwin"
|
2017-08-20 03:45:13 +02:00
|
|
|
fi
|
2017-08-07 17:24:16 +02:00
|
|
|
|
|
|
|
docker --version
|
|
|
|
docker-compose --version
|
|
|
|
|
2017-08-20 03:45:13 +02:00
|
|
|
docker-compose -f $DOCKER_DIR/docker-compose.yml -f $DOCKER_DIR/docker-compose.$OS.yml down
|
|
|
|
docker-compose -f $DOCKER_DIR/docker-compose.yml -f $DOCKER_DIR/docker-compose.$OS.yml up -d
|