comparison scripts/import-usps.sh @ 73:d2c44193fbaa

explictly remove db's before import
author smith@nwoca.org
date Mon, 21 Mar 2016 22:17:55 +0100
parents e155908fa039
children 6f8a77d8d58d
comparison
equal deleted inserted replaced
72:6f562946db80 73:d2c44193fbaa
1 #!/bin/bash 1 #!/bin/bash
2 2
3 source "$( dirname "${BASH_SOURCE[0]}")/.functions.sh"
4
3 docker-compose stop uspsapp uspsdb 5 docker-compose stop uspsapp uspsdb
6 resetDbVolume uspsdb
4 docker-compose rm -vf uspsapp uspsdb 7 docker-compose rm -vf uspsapp uspsdb
5 8
6 export IMP_IRN=${IMP_IRN} 9 export IMP_IRN=${IMP_IRN}
7 export IMP_URL=${IMP_URL-ftp://username:password@nwoca.org} 10 export IMP_URL=${IMP_URL-ftp://username:password@nwoca.org}
8 export IMP_PATH=${IMP_PATH} 11 export IMP_PATH=${IMP_PATH}
14 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml up uspsimport | tee uspsimport.log 17 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml up uspsimport | tee uspsimport.log
15 # remove temporary container 18 # remove temporary container
16 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f uspsimport 19 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f uspsimport
17 # start application 20 # start application
18 docker-compose up -d uspsapp 21 docker-compose up -d uspsapp
19