Mercurial > public > ssdt-docker
comparison scripts/import-usps.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 uspsapp uspsdb | |
6 resetDbVolume uspsdb | |
7 docker-compose rm -vf uspsapp uspsdb | |
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:--a false} | |
13 export IMP_EM=${IMP_EM-} | |
14 | |
15 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f uspsimport | |
16 # start import and wait for completion | |
17 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml up uspsimport | tee uspsimport.log | |
18 # remove temporary container | |
19 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f uspsimport | |
20 # start application | |
21 docker-compose up -d uspsapp |