comparison scripts/import-usps.sh @ 101:13751fd2e40a release/v1.1.0

DEP-12: include override file in import commands
author smith@nwoca.org
date Mon, 10 Apr 2017 20:06:24 +0100
parents 6f8a77d8d58d
children fea886ba7279
comparison
equal deleted inserted replaced
100:43c423e8f420 101:13751fd2e40a
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 export IMP_ANON=${IMP_ANON:--a false} 12 export IMP_ANON=${IMP_ANON:--a false}
13 export IMP_EM=${IMP_EM-} 13 export IMP_EM=${IMP_EM-}
14 14
15 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usps.yml rm -f uspsimport 15 [ -f "docker-compose.override.yml" ] && export OVERRIDE=" -f docker-compose.override.yml"
16
17 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usps.yml $OVERRIDE rm -f uspsimport
16 # start import and wait for completion 18 # start import and wait for completion
17 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usps.yml up uspsimport | tee uspsimport.log 19 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usps.yml $OVERRIDE up uspsimport | tee uspsimport.log
18 # remove temporary container 20 # remove temporary container
19 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usps.yml rm -f uspsimport 21 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usps.yml $OVERRIDE rm -f uspsimport
20 # start application 22 # start application
21 docker-compose up -d uspsapp 23 docker-compose up -d uspsapp