Skip to content

Commit

Permalink
fix render-local-env script for using local UI (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacmrob authored Jun 4, 2018
1 parent 5f44443 commit a345ce4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions automation/render-local-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ ENV=dev
SERVICE=leonardo
LOCAL_UI=${LOCAL_UI:-false} # local ui defaults to false unless set in the env

FC_INSTANCE=fiab
if [ $LOCAL_UI = "true" ]; then
FC_INSTANCE=local
fi

# Parameters
FIRECLOUD_AUTOMATED_TESTING_BRANCH=${1:-$FIRECLOUD_AUTOMATED_TESTING_BRANCH}
VAULT_TOKEN=${2:-$VAULT_TOKEN}
Expand Down Expand Up @@ -59,13 +64,13 @@ render_configs() {
docker pull broadinstitute/dsde-toolbox:dev
docker run -it --rm -e VAULT_TOKEN=${VAULT_TOKEN} \
-e ENVIRONMENT=${ENV} -e ROOT_DIR=${WORKING_DIR} -v $PWD/firecloud-automated-testing/configs:/input -v $PWD/$SCRIPT_ROOT:/output \
-e OUT_PATH=/output/src/test/resources -e INPUT_PATH=/input -e LOCAL_UI=$LOCAL_UI \
-e OUT_PATH=/output/src/test/resources -e INPUT_PATH=/input -e LOCAL_UI=$LOCAL_UI -e FC_INSTANCE=$FC_INSTANCE \
broadinstitute/dsde-toolbox:dev render-templates.sh

# pull service-specific application.conf
docker run -it --rm -e VAULT_TOKEN=${VAULT_TOKEN} \
-e ENVIRONMENT=${ENV} -e ROOT_DIR=${WORKING_DIR} -v $PWD/firecloud-automated-testing/configs/$SERVICE:/input -v $PWD/$SCRIPT_ROOT:/output \
-e OUT_PATH=/output/src/test/resources -e INPUT_PATH=/input -e LOCAL_UI=$LOCAL_UI \
-e OUT_PATH=/output/src/test/resources -e INPUT_PATH=/input -e LOCAL_UI=$LOCAL_UI -e FC_INSTANCE=$FC_INSTANCE \
broadinstitute/dsde-toolbox:dev render-templates.sh
cd $original_dir
}
Expand Down

0 comments on commit a345ce4

Please sign in to comment.