comparison scripts/import-usas.sh @ 44:e5ba33051de7

add scripts and compose file for importing from server
author Dave smith <smith@nwoca.org>
date Wed, 27 Jan 2016 17:19:19 -0500
parents
children dfbb643b82a3
comparison
equal deleted inserted replaced
43:91363ee7b7a4 44:e5ba33051de7
1 #!/bin/bash
2
3 docker-compose stop usasapp usasdb
4 docker-compose rm -vf usasapp usasdb
5
6 export IMP_IRN=${IMP_IRN}
7 export IMP_URL=${IMP_URL-ftp://username:password@nwoca.org}
8 export IMP_PATH=${IMP_PATH}
9 export IMP_ANON=${IMP_ANON-}
10 export IMP_EM=${IMP_EM-}
11
12 # start import and wait for completion
13 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml up usasimport
14 # remove temporary container
15 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f usasimport
16 # start application
17 docker-compose up -d usasapp
18