Mercurial > public > ssdt-docker
comparison pilot/setup.sh @ 148:d20c6ff9a821
DEP-12: upgrade to compose format 3.3
author | smith@nwoca.org |
---|---|
date | Mon, 10 Jul 2017 18:24:40 +0100 |
parents | 75aa7005b544 |
children | ab4effbe8d43 |
comparison
equal
deleted
inserted
replaced
147:2fd1dfc5c69c | 148:d20c6ff9a821 |
---|---|
2 # Sets up a new district project based on SSDT default configuration in the current working directory. | 2 # Sets up a new district project based on SSDT default configuration in the current working directory. |
3 # | 3 # |
4 # Usage: | 4 # Usage: |
5 # | 5 # |
6 # /data/preview/sampletown $ /ssdt/compose2/preview/setup.sh [usas,usps...] | 6 # /data/preview/sampletown $ /ssdt/compose2/preview/setup.sh [usas,usps...] |
7 # | |
8 # | |
9 # | 7 # |
10 # Will create a docker-compose.yml and .env file with default settings. | 8 # Will create a docker-compose.yml and .env file with default settings. |
11 # | 9 # |
12 # | 10 # |
13 source "$(dirname "${BASH_SOURCE[0]}")/../scripts/.functions.sh" | 11 source "$(dirname "${BASH_SOURCE[0]}")/../scripts/.functions.sh" |
59 md5verify ./.docker-compose.md5 && create="OK" | 57 md5verify ./.docker-compose.md5 && create="OK" |
60 fi | 58 fi |
61 | 59 |
62 if [ "$create" == "OK" ] | 60 if [ "$create" == "OK" ] |
63 then | 61 then |
64 echo "version: \"3.1\"" > ./docker-compose.yml | 62 echo "version: \"3.3\"" > ./docker-compose.yml |
65 echo "services:" >> ./docker-compose.yml | 63 echo "services:" >> ./docker-compose.yml |
66 | 64 |
67 [ ! "$usas" == "" ] && cat $base/usas-services.yml >> ./docker-compose.yml | 65 [ ! "$usas" == "" ] && cat $base/usas-services.yml >> ./docker-compose.yml |
68 | 66 |
69 [ ! "$usps" == "" ] && cat $base/usps-services.yml >> ./docker-compose.yml | 67 [ ! "$usps" == "" ] && cat $base/usps-services.yml >> ./docker-compose.yml |
80 echo "created docker-compose.yml" | 78 echo "created docker-compose.yml" |
81 | 79 |
82 else | 80 else |
83 echo " | 81 echo " |
84 | 82 |
85 Error! docker-compose.yml file has been modified or checksum missing. Can auto-apply update(s). | 83 Error! docker-compose.yml file has been modified or checksum missing. Can not auto-apply update(s). |
86 Move customizations to docker-compose.override.yml then delete the docker-compose.yml | 84 Move customizations to docker-compose.override.yml then delete the docker-compose.yml |
87 " | 85 " |
88 fi | 86 fi |
89 | 87 |
90 if [ "$USAS_APPLICATIONID" == "" ] | 88 if [ "$USAS_APPLICATIONID" == "" ] |