Mercurial > public > ssdt-docker
diff scripts/import-usas.sh @ 99:5387d0997596 release/v1.1.0
DEP-12: include override file in import commands
author | smith@nwoca.org |
---|---|
date | Mon, 10 Apr 2017 18:46:19 +0100 |
parents | 6f8a77d8d58d |
children | 43c423e8f420 |
line wrap: on
line diff
--- a/scripts/import-usas.sh Mon Apr 10 18:27:34 2017 +0100 +++ b/scripts/import-usas.sh Mon Apr 10 18:46:19 2017 +0100 @@ -9,12 +9,14 @@ export IMP_IRN=${IMP_IRN} export IMP_URL=${IMP_URL-ftp://username:password@nwoca.org} export IMP_PATH=${IMP_PATH} + +[ -f "docker-compose.override.yml" ] && EXPORT OVERRIDE=" -f docker-compose.override.yml" # -docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml rm -f usasimport +docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml $OVERRIDE rm -f usasimport # start import and wait for completion -docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml up usasimport | tee usasimport.log +docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml $OVERRIDE up usasimport | tee usasimport.log # remove temporary container -docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml rm -f usasimport +docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml $OVERRIDE rm -f usasimport # start application docker-compose up -d usasapp