annotate scripts/import-usps.sh @ 68:2418f77afad2

fix argument
author smith@nwoca.org
date Fri, 18 Mar 2016 01:12:11 +0100
parents e155908fa039
children d2c44193fbaa
rev   line source
44
e5ba33051de7 add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff changeset
1 #!/bin/bash
e5ba33051de7 add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff changeset
2
e5ba33051de7 add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff changeset
3 docker-compose stop uspsapp uspsdb
e5ba33051de7 add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff changeset
4 docker-compose rm -vf uspsapp uspsdb
e5ba33051de7 add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff changeset
5
e5ba33051de7 add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff changeset
6 export IMP_IRN=${IMP_IRN}
e5ba33051de7 add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff changeset
7 export IMP_URL=${IMP_URL-ftp://username:password@nwoca.org}
e5ba33051de7 add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff changeset
8 export IMP_PATH=${IMP_PATH}
45
dc40a6ed0af3 add default for usps anonymous
Dave smith <smith@nwoca.org>
parents: 44
diff changeset
9 export IMP_ANON=${IMP_ANON:--a false}
44
e5ba33051de7 add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff changeset
10 export IMP_EM=${IMP_EM-}
e5ba33051de7 add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff changeset
11
65
e155908fa039 improve import and training scripts. include all containers in info
smith@nwoca.org
parents: 46
diff changeset
12 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f uspsimport
44
e5ba33051de7 add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff changeset
13 # start import and wait for completion
46
dfbb643b82a3 tee import logs to a file
smith@nwoca.org
parents: 45
diff changeset
14 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml up uspsimport | tee uspsimport.log
44
e5ba33051de7 add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff changeset
15 # remove temporary container
e5ba33051de7 add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff changeset
16 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f uspsimport
e5ba33051de7 add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff changeset
17 # start application
e5ba33051de7 add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff changeset
18 docker-compose up -d uspsapp
e5ba33051de7 add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff changeset
19