Mercurial > public > ssdt-docker
changeset 94:6f8a77d8d58d
DEP-12: update import compose files
author | smith@nwoca.org |
---|---|
date | Mon, 10 Apr 2017 18:19:07 +0100 |
parents | f6d96413673a |
children | 01e478158d87 023c585d3428 |
files | compose/preview/debug.yml compose/preview/import-usas.yml compose/preview/import-usps.yml scripts/import-usas.sh scripts/import-usps.sh |
diffstat | 5 files changed, 26 insertions(+), 28 deletions(-) [+] |
line wrap: on
line diff
--- a/compose/preview/debug.yml Thu Oct 13 00:45:33 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -uspsdebug: - image: docker.ssdt.io/ssdt-postgres:3 - command: /bin/bash - links: - - uspsdb:database - environment: - - DB_HOST=database - - DB_NAME=$${DATABASE_ENV_DB_NAME} - - DB_USER=$${DATABASE_ENV_DB_USER} - - DB_PASS=$${DATABASE_ENV_DB_PASS} -usasdebug: - image: docker.ssdt.io/ssdt-postgres:3 - command: -i ${IMP_IRN} -u ${IMP_URL} -r ${IMP_PATH} ${IMP_ANON} ${IMP_EM} - links: - - usasdb:database - environment: - - DB_HOST=database - - DB_NAME=$${DATABASE_ENV_DB_NAME} - - DB_USER=$${DATABASE_ENV_DB_USER} - - DB_PASS=$${DATABASE_ENV_DB_PASS}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compose/preview/import-usas.yml Mon Apr 10 18:19:07 2017 +0100 @@ -0,0 +1,10 @@ +usasimport: + image: docker.ssdt.io/usas-import:preview + command: -i ${IMP_IRN} -u ${IMP_URL} -r ${IMP_PATH} + links: + - usasdb:database + environment: + - DB_HOST=database + - DB_NAME=$${DATABASE_ENV_DB_NAME} + - DB_USER=$${DATABASE_ENV_DB_USER} + - DB_PASS=$${DATABASE_ENV_DB_PASS}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compose/preview/import-usps.yml Mon Apr 10 18:19:07 2017 +0100 @@ -0,0 +1,10 @@ +uspsimport: + image: docker.ssdt.io/usps-import:preview + command: -i ${IMP_IRN} -u ${IMP_URL} -r ${IMP_PATH} ${IMP_ANON} ${IMP_EM} + links: + - uspsdb:database + environment: + - DB_HOST=database + - DB_NAME=$${DATABASE_ENV_DB_NAME} + - DB_USER=$${DATABASE_ENV_DB_USER} + - DB_PASS=$${DATABASE_ENV_DB_PASS}
--- a/scripts/import-usas.sh Thu Oct 13 00:45:33 2016 +0100 +++ b/scripts/import-usas.sh Mon Apr 10 18:19:07 2017 +0100 @@ -9,14 +9,12 @@ export IMP_IRN=${IMP_IRN} export IMP_URL=${IMP_URL-ftp://username:password@nwoca.org} export IMP_PATH=${IMP_PATH} -export IMP_ANON=${IMP_ANON-} -export IMP_EM=${IMP_EM-} # -docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f usasimport +docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml rm -f usasimport # start import and wait for completion -docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml up usasimport | tee usasimport.log +docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml up usasimport | tee usasimport.log # remove temporary container -docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f usasimport +docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usas.yml rm -f usasimport # start application docker-compose up -d usasapp
--- a/scripts/import-usps.sh Thu Oct 13 00:45:33 2016 +0100 +++ b/scripts/import-usps.sh Mon Apr 10 18:19:07 2017 +0100 @@ -12,10 +12,10 @@ export IMP_ANON=${IMP_ANON:--a false} export IMP_EM=${IMP_EM-} -docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f uspsimport +docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usps.yml rm -f uspsimport # start import and wait for completion -docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml up uspsimport | tee uspsimport.log +docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usps.yml up uspsimport | tee uspsimport.log # remove temporary container -docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f uspsimport +docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import-usps.yml rm -f uspsimport # start application docker-compose up -d uspsapp