2016-10-20 16:55:05 +03:00
|
|
|
#! /usr/bin/env bash
|
2016-10-20 18:04:32 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Prelude - make bash behave sanely
|
|
|
|
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
|
|
|
|
#
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
INCLUDE=$(dirname $(readlink -f $0))
|
|
|
|
. $INCLUDE/setup_tools
|
|
|
|
|
|
|
|
ensure_command triton
|
|
|
|
ensure_triton_cns_is_enabled
|
|
|
|
write_env_file
|
2016-10-20 16:55:05 +03:00
|
|
|
triton env
|
|
|
|
|
|
|
|
docker-compose build
|
2016-10-20 17:40:24 +03:00
|
|
|
docker-compose push
|
2016-10-20 16:55:05 +03:00
|
|
|
|
|
|
|
export DOCKER_HOST=$_DOCKER_HOST
|
|
|
|
export DOCKER_CERT_PATH=$_DOCKER_CERT_PATH
|
|
|
|
export DOCKER_TLS_VERIFY=$_DOCKER_TLS_VERIFY
|
|
|
|
|
|
|
|
docker-compose pull
|
|
|
|
docker-compose up -d
|