# HG changeset patch # User smith@nwoca.org # Date 1494264323 -3600 # Node ID bf5f8acc35f212a15e545c6857f600b44eec409b # Parent 5c986cbb22b8d564a78fdb89a2ae35e0e4d8074a DEP-12: improve compse setup.sh diff -r 5c986cbb22b8 -r bf5f8acc35f2 compose2/preview/setup.sh --- a/compose2/preview/setup.sh Mon May 08 16:38:33 2017 +0100 +++ b/compose2/preview/setup.sh Mon May 08 18:25:23 2017 +0100 @@ -3,7 +3,7 @@ # # Usage: # -# /data/preview/sampleville $ /ssdt/compose2/preview/setup.sh +# /data/preview/sampletown $ /ssdt/compose2/preview/setup.sh # # Will create a docker-compose.yml and .env file with default settings. # @@ -12,6 +12,8 @@ base=$(dirname "${BASH_SOURCE[0]}") +echo "Preparing '$(basename $PWD)' with default USxS configuration" + if [ ! -e "docker-compose.yml" ] ; then cp $base/usxs-template.yml ./docker-compose.yml echo "created docker-compose.yml" @@ -25,4 +27,7 @@ then echo "COMPOSE_PROJECT_NAME=$(basename $PWD)" >> .env echo "set project name in .env file" + source .env fi + +echo "project '$COMPOSE_PROJECT_NAME' ready with default values. Review or create a docker-compose.override.yml for custom settings." \ No newline at end of file