mirror of
https://github.com/yldio/copilot.git
synced 2024-12-26 03:40:04 +02:00
8295bd6882
this shall be a progressive process
31 lines
871 B
Bash
Executable File
31 lines
871 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
#
|
|
# Prelude - make bash behave sanely
|
|
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
|
|
#
|
|
set -euo pipefail
|
|
|
|
# Beware of CDPATH gotchas causing cd not to work correctly when a user
|
|
# has set this in their environment
|
|
# https://bosker.wordpress.com/2012/02/12/bash-scripters-beware-of-the-cdpath/
|
|
unset CDPATH
|
|
|
|
readonly INCLUDE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
# shellcheck source=bin/setup-tools
|
|
. "${INCLUDE}"/setup-tools
|
|
|
|
echo ">> running triton deploy with docker-compose"
|
|
ensure_command triton
|
|
ensure_triton_cns_is_enabled
|
|
get_triton_details
|
|
write_env_file
|
|
|
|
export DOCKER_HOST=$_DOCKER_HOST
|
|
export DOCKER_CERT_PATH=$_DOCKER_CERT_PATH
|
|
# Do not TLS verify for now, incompatibilities between circleci and joyent
|
|
export DOCKER_TLS_VERIFY=
|
|
|
|
docker-compose pull
|
|
COMPOSE_PROJECT_NAME=${CIRCLE_BRANCH} docker-compose up -d
|