# HG changeset patch # User smith@nwoca.org # Date 1491844747 -3600 # Node ID 6f8a77d8d58dee501d18353aa1daa366b03a965b # Parent f6d96413673a5178ca8cea94ba085f1a50cc3550 DEP-12: update import compose files diff -r f6d96413673a -r 6f8a77d8d58d compose/preview/debug.yml --- 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} diff -r f6d96413673a -r 6f8a77d8d58d compose/preview/import-usas.yml --- /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} diff -r f6d96413673a -r 6f8a77d8d58d compose/preview/import-usps.yml --- /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} diff -r f6d96413673a -r 6f8a77d8d58d scripts/import-usas.sh --- 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 diff -r f6d96413673a -r 6f8a77d8d58d scripts/import-usps.sh --- 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