kayobe/dev/environment-setup.sh
Mark Goddard ab205197b5 Update development scripts for control plane deployment
This adds support for deploying a virtualised control plane via Tenks, using
the Kayobe development scripts tenks-deploy.sh and tenks-teardown.sh.

Change-Id: I752455af9eb44cdb0f9921fd0c876fc2dfb50a5c
2019-02-05 09:36:35 +00:00

28 lines
570 B
Bash
Executable File

#!/bin/bash
# Save the current shell options.
oldstate=$(set +o)
set -eu
set -o pipefail
# This script can be used to prepare the environment for use with kayobe. This
# includes setting environment variables and activating the python virtual
# environment. This script should be sourced rather than executed in a
# subprocess. e.g. source dev/environment-setup.sh
PARENT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${PARENT}/functions"
function main {
config_init
environment_setup
}
main
# Restore previous shell options.
eval "$oldstate"