2016-10-14 13:57:26 +03:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
|
|
|
|
#
|
|
|
|
# Prelude
|
|
|
|
#
|
|
|
|
set -euo pipefail
|
|
|
|
IFS=$'\n\t'
|
2016-10-24 13:42:38 +03:00
|
|
|
# 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 )"
|
2016-10-25 14:05:29 +03:00
|
|
|
# shellcheck source=bin/setup-tools
|
|
|
|
. "${INCLUDE}"/setup-tools
|
2016-10-14 13:57:26 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Main
|
|
|
|
#
|
|
|
|
ensure_prerequisites
|
2016-11-01 14:13:47 +02:00
|
|
|
get_triton_details
|
|
|
|
check_docker_config
|
2016-10-14 13:57:26 +03:00
|
|
|
write_env_file
|