comparison scripts/import-usas.sh @ 90:63cb9be89a26 production v1.0.0

flow: Merged <release> 'v1.0.0' to <master> ('production').
author smith@nwoca.org
date Thu, 22 Sep 2016 01:49:20 +0100
parents d2c44193fbaa
children 6f8a77d8d58d
comparison
equal deleted inserted replaced
1:44f401c902ba 90:63cb9be89a26
1 #!/bin/bash
2
3 source "$( dirname "${BASH_SOURCE[0]}")/.functions.sh"
4
5 docker-compose stop usasapp usasdb
6 resetDbVolume usasdb
7 docker-compose rm -vf usasapp usasdb
8
9 export IMP_IRN=${IMP_IRN}
10 export IMP_URL=${IMP_URL-ftp://username:password@nwoca.org}
11 export IMP_PATH=${IMP_PATH}
12 export IMP_ANON=${IMP_ANON-}
13 export IMP_EM=${IMP_EM-}
14 #
15 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f usasimport
16 # start import and wait for completion
17 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml up usasimport | tee usasimport.log
18 # remove temporary container
19 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f usasimport
20 # start application
21 docker-compose up -d usasapp
22