comparison 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
comparison
equal deleted inserted replaced
96:6643a8613410 99:5387d0997596
7 docker-compose rm -vf usasapp usasdb 7 docker-compose rm -vf usasapp usasdb
8 8
9 export IMP_IRN=${IMP_IRN} 9 export IMP_IRN=${IMP_IRN}
10 export IMP_URL=${IMP_URL-ftp://username:password@nwoca.org} 10 export IMP_URL=${IMP_URL-ftp://username:password@nwoca.org}
11 export IMP_PATH=${IMP_PATH} 11 export IMP_PATH=${IMP_PATH}
12
13 [ -f "docker-compose.override.yml" ] && EXPORT OVERRIDE=" -f docker-compose.override.yml"
12 # 14 #
13 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml rm -f usasimport 15 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml $OVERRIDE rm -f usasimport
14 # start import and wait for completion 16 # start import and wait for completion
15 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml up usasimport | tee usasimport.log 17 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml $OVERRIDE up usasimport | tee usasimport.log
16 # remove temporary container 18 # remove temporary container
17 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml rm -f usasimport 19 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml $OVERRIDE rm -f usasimport
18 # start application 20 # start application
19 docker-compose up -d usasapp 21 docker-compose up -d usasapp
20 22