changeset 235:b390c30aa6c6

DEP-14: update prod tags
author smith@nwoca.org
date Wed, 10 Jan 2018 01:22:38 +0000
parents 2ae65177f74e
children 8baec28c7d50 84c830c42d55
files prod/import-usas.sh prod/import-usas.yml prod/import-usps.sh prod/import-usps.yml prod/nginx-override.yml prod/training.sh prod/training.yml prod/usas-services.yml prod/usps-services.yml
diffstat 9 files changed, 23 insertions(+), 49 deletions(-) [+]
line wrap: on
line diff
--- a/prod/import-usas.sh	Wed Jan 10 00:44:05 2018 +0000
+++ b/prod/import-usas.sh	Wed Jan 10 01:22:38 2018 +0000
@@ -13,11 +13,11 @@
 [ -f "docker-compose.override.yml" ] && export OVERRIDE=" -f docker-compose.override.yml"
 [ -f "docker-compose.usasimport.override.yml" ] && export OVERRIDE2=" -f docker-compose.usasimport.override.yml"
 #
-docker-compose -f docker-compose.yml -f ${SSDT_HOME}/pilot/import-usas.yml $OVERRIDE rm -f usasimport 
+docker-compose -f docker-compose.yml -f ${SSDT_HOME}/prod/import-usas.yml $OVERRIDE rm -f usasimport 
 # start import and wait for completion
-docker-compose -f docker-compose.yml -f ${SSDT_HOME}/pilot/import-usas.yml $OVERRIDE $OVERRIDE2 up usasimport | tee usasimport.log
+docker-compose -f docker-compose.yml -f ${SSDT_HOME}/prod/import-usas.yml $OVERRIDE $OVERRIDE2 up usasimport | tee usasimport.log
 # remove temporary container
-docker-compose -f docker-compose.yml -f ${SSDT_HOME}/pilot/import-usas.yml $OVERRIDE rm -f usasimport
+docker-compose -f docker-compose.yml -f ${SSDT_HOME}/prod/import-usas.yml $OVERRIDE rm -f usasimport
 # start application
 docker-compose up -d usasapp
 
--- a/prod/import-usas.yml	Wed Jan 10 00:44:05 2018 +0000
+++ b/prod/import-usas.yml	Wed Jan 10 01:22:38 2018 +0000
@@ -1,7 +1,7 @@
 version: "3.3"
 services:
   usasimport:
-    image: docker.ssdt.io/usas-import:${USAS_TAG:-pilot}
+    image: docker.ssdt.io/usas-import:${USAS_TAG:-prod}
     command: -i ${IMP_IRN- } -u ${IMP_URL- } -r ${IMP_PATH- }
     depends_on:
       - usasdb
--- a/prod/import-usps.sh	Wed Jan 10 00:44:05 2018 +0000
+++ b/prod/import-usps.sh	Wed Jan 10 01:22:38 2018 +0000
@@ -13,11 +13,12 @@
 export IMP_EM=${IMP_EM-}
 
 [ -f "docker-compose.override.yml" ] && export OVERRIDE=" -f docker-compose.override.yml"
+[ -f "docker-compose.uspsimport.override.yml" ] && export OVERRIDE2=" -f docker-compose.uspsimport.override.yml"
 
-docker-compose -f docker-compose.yml -f ${SSDT_HOME}/pilot/import-usps.yml $OVERRIDE rm -f uspsimport
+docker-compose -f docker-compose.yml -f ${SSDT_HOME}/prod/import-usps.yml $OVERRIDE rm -f uspsimport
 # start import and wait for completion
-docker-compose -f docker-compose.yml -f ${SSDT_HOME}/pilot/import-usps.yml $OVERRIDE up uspsimport | tee uspsimport.log
+docker-compose -f docker-compose.yml -f ${SSDT_HOME}/prod/import-usps.yml $OVERRIDE $OVERRIDE2 up uspsimport | tee uspsimport.log
 # remove temporary container
-docker-compose -f docker-compose.yml -f ${SSDT_HOME}/pilot/import-usps.yml $OVERRIDE rm -f uspsimport
+docker-compose -f docker-compose.yml -f ${SSDT_HOME}/prod/import-usps.yml $OVERRIDE rm -f uspsimport
 # start application
 docker-compose up -d uspsapp
--- a/prod/import-usps.yml	Wed Jan 10 00:44:05 2018 +0000
+++ b/prod/import-usps.yml	Wed Jan 10 01:22:38 2018 +0000
@@ -1,7 +1,7 @@
 version: "3.3"
 services:
   uspsimport:
-    image: docker.ssdt.io/usps-import:${USPS_TAG:-pilot}
+    image: docker.ssdt.io/usps-import:${USPS_TAG:-prod}
     command: -i ${IMP_IRN- } -u ${IMP_URL- } -r ${IMP_PATH- } ${IMP_ANON- } ${IMP_EM- }
     depends_on:
       - uspsdb
--- a/prod/nginx-override.yml	Wed Jan 10 00:44:05 2018 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-version: "3.3"
-services:
-  usasapp:
-    networks:
-      - proxy
-    environment:
-      - APPLICATION_ADMIN_PASSWORD=test
-      - APPLICATION_ADMIN_RESET=true
-      - VIRTUAL_HOST=${COMPOSE_PROJECT_NAME}-usas.demo2.ssdt.io
-      - VIRTUAL_PORT=8080
-      - LETSENCRYPT_HOST=${COMPOSE_PROJECT_NAME}-usas.demo2.ssdt.io
-      - LETSENCRYPT_EMAIL=smith@nwoca.org
-      - JAVA_OPTS=-Xmx840m
-  uspsapp:
-    networks:
-      - proxy
-    environment:
-      - APPLICATION_ADMIN_PASSWORD=test
-      - APPLICATION_ADMIN_RESET=true
-      - VIRTUAL_HOST=${COMPOSE_PROJECT_NAME}-usps.demo2.ssdt.io
-      - VIRTUAL_PORT=8080
-      - LETSENCRYPT_HOST=${COMPOSE_PROJECT_NAME}-usps.demo2.ssdt.io
-      - LETSENCRYPT_EMAIL=smith@nwoca.org
-      - JAVA_OPTS=-Xmx840m
-networks:
-   proxy:
-     external:
-        name: proxy_default
-
--- a/prod/training.sh	Wed Jan 10 00:44:05 2018 +0000
+++ b/prod/training.sh	Wed Jan 10 01:22:38 2018 +0000
@@ -3,14 +3,13 @@
 #
 # Usage:
 #
-#  /data/preview/training-01 $   /ssdt/compose2/preview/training.sh
+#  /data/preview/training-01 $   /ssdt/compose2/prod/training.sh
 #
 # Will create a docker-compose.yml and .env file with default settings using the SSDT 
 # supplied training database
 #
-# These are special database images which recreates the database each time the container is created.
-# Therefore, it is very easy to reset the training database simply by deleting the
-# project containers and restarting them. for example:
+# These are special database images which recreates the database each time the container is started.
+# Therefore, it is very easy to reset the training database simply by restarting the containers. for example:
 #     
 #    docker-compose down
 #    docker-compose up -d
--- a/prod/training.yml	Wed Jan 10 00:44:05 2018 +0000
+++ b/prod/training.yml	Wed Jan 10 01:22:38 2018 +0000
@@ -1,10 +1,13 @@
-# **** DO NOT MODIFY THIS FILE. ****"
-# Place customizations in docker-compose.override.yml and .env
+# ****************************************************************
+# *                DO NOT MODIFY THIS FILE.                      *
+# *                                                              *
+# * Place customizations in docker-compose.override.yml and .env *
+# ****************************************************************
 version: "3.3"
 services:
   usasdb:
     restart: unless-stopped
-    image: docker.ssdt.io/trainingdb-usas:pilot
+    image: docker.ssdt.io/trainingdb-usas:${USAS_DB_TAG:-prod}
     networks:
       - default
     environment:
@@ -13,7 +16,7 @@
       - DB_PASS=${USAS_DB_PASSWORD:-usasdefault}
   usasapp:
     restart: unless-stopped
-    image: docker.ssdt.io/usas-app:${USAS_TAG:-pilot}
+    image: docker.ssdt.io/usas-app:${USAS_TAG:-prod}
     depends_on:
       - usasdb
     networks:
@@ -39,7 +42,7 @@
       - JAVA_OPTS=-Xmx840m 
   uspsdb:
     restart: unless-stopped
-    image: docker.ssdt.io/trainingdb-usps:pilot
+    image: docker.ssdt.io/trainingdb-usps:${USPS_DB_TAG:-prod}
     networks:
       - default
     environment:
@@ -48,7 +51,7 @@
       - DB_PASS=${USPS_DB_PASSWORD:-uspsdefault}
   uspsapp:
     restart: unless-stopped
-    image: docker.ssdt.io/usps-app:${USPS_TAG:-pilot}
+    image: docker.ssdt.io/usps-app:${USPS_TAG:-prod}
     depends_on:
       - uspsdb
     networks:
--- a/prod/usas-services.yml	Wed Jan 10 00:44:05 2018 +0000
+++ b/prod/usas-services.yml	Wed Jan 10 01:22:38 2018 +0000
@@ -11,7 +11,7 @@
       - DB_PASS=${USAS_DB_PASSWORD:-usasdefault}
   usasapp:
     restart: unless-stopped
-    image: docker.ssdt.io/usas-app:${USAS_TAG:-pilot}
+    image: docker.ssdt.io/usas-app:${USAS_TAG:-prod}
     depends_on:
       - usasdb
     networks:
--- a/prod/usps-services.yml	Wed Jan 10 00:44:05 2018 +0000
+++ b/prod/usps-services.yml	Wed Jan 10 01:22:38 2018 +0000
@@ -11,7 +11,7 @@
       - DB_PASS=${USPS_DB_PASSWORD:-uspsdefault}
   uspsapp:
     restart: unless-stopped
-    image: docker.ssdt.io/usps-app:${USPS_TAG:-pilot}
+    image: docker.ssdt.io/usps-app:${USPS_TAG:-prod}
     depends_on:
       - uspsdb
     networks: