Mercurial > public > ssdt-docker
annotate scripts/import-usas.sh @ 59:8c63436837f9
add system info scripts
author | smith@nwoca.org |
---|---|
date | Wed, 09 Mar 2016 01:19:07 +0000 |
parents | dfbb643b82a3 |
children | e155908fa039 |
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 usasapp usasdb |
e5ba33051de7
add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
4 docker-compose rm -vf usasapp usasdb |
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} |
e5ba33051de7
add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
9 export IMP_ANON=${IMP_ANON-} |
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 |
e5ba33051de7
add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
12 # start import and wait for completion |
46 | 13 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml up usasimport | tee usasimport.log |
44
e5ba33051de7
add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
14 # remove temporary container |
e5ba33051de7
add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
15 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f usasimport |
e5ba33051de7
add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
16 # start application |
e5ba33051de7
add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
17 docker-compose up -d usasapp |
e5ba33051de7
add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
18 |