comparison scripts/import-usas.sh @ 94:6f8a77d8d58d

DEP-12: update import compose files
author smith@nwoca.org
date Mon, 10 Apr 2017 18:19:07 +0100
parents d2c44193fbaa
children 5387d0997596
comparison
equal deleted inserted replaced
93:f6d96413673a 94:6f8a77d8d58d
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 export IMP_ANON=${IMP_ANON-}
13 export IMP_EM=${IMP_EM-}
14 # 12 #
15 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f usasimport 13 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml rm -f usasimport
16 # start import and wait for completion 14 # start import and wait for completion
17 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml up usasimport | tee usasimport.log 15 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml up usasimport | tee usasimport.log
18 # remove temporary container 16 # remove temporary container
19 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f usasimport 17 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml rm -f usasimport
20 # start application 18 # start application
21 docker-compose up -d usasapp 19 docker-compose up -d usasapp
22 20