comparison scripts/import-usas.sh @ 100:43c423e8f420 release/v1.1.0

DEP-12: include override file in import commands
author smith@nwoca.org
date Mon, 10 Apr 2017 18:50:28 +0100
parents 5387d0997596
children fea886ba7279
comparison
equal deleted inserted replaced
99:5387d0997596 100:43c423e8f420
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 12
13 [ -f "docker-compose.override.yml" ] && EXPORT OVERRIDE=" -f docker-compose.override.yml" 13 [ -f "docker-compose.override.yml" ] && export OVERRIDE=" -f docker-compose.override.yml"
14 # 14 #
15 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml $OVERRIDE rm -f usasimport 15 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml $OVERRIDE rm -f usasimport
16 # start import and wait for completion 16 # start import and wait for completion
17 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml $OVERRIDE 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
18 # remove temporary container 18 # remove temporary container