Skip to content

Commit

Permalink
Update deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
fergmac committed Dec 18, 2024
1 parent 617a626 commit 7e01f32
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
16 changes: 11 additions & 5 deletions backend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,21 @@ objects:
containers:
- name: ${REPO}-${ZONE}-${COMPONENT}-app
image: 'ghcr.io/bcgov/${REPO}/${COMPONENT}:${TAG}'
volumeMounts:
- name: staticfiles
mountPath: /app/staticfiles
# volumeMounts:
# - name: staticfiles
# mountPath: /app/staticfiles
ports:
- containerPort: 8080
protocol: TCP
env:
- name: DATABASE_SERVICE_NAME
value: ${REPO}-${ZONE}-database
- name: PG_PRIMARY_HOST
value: ${REPO}-${ZONE}-database
- name: PG_PRIMARY_PORT
value: "5432"
- name: PGHOST
value: /tmp
- name: DATABASE_NAME
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -401,13 +407,13 @@ objects:
key: SSO_IDP_HINT
name: ${REPO}-${ZONE}-global-config
- name: CUSTOM_GDAL_GEOS
value: 'False'
value: 'false'
- name: WEB_CONCURRENCY
value: '4'
- name: GUNICORN_WORKERS
value: '4'
- name: ENFORCE_ENV_VARIABLES
value: 'False'
value: 'false'
- name: EMAIL_NOTIFICATION_RECIPIENT
valueFrom:
configMapKeyRef:
Expand Down
11 changes: 6 additions & 5 deletions common/openshift.init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ parameters:
- name: ZONE
description: Deployment zone, e.g. pr-### or prod
required: true
# - description: The name of the OpenShift Service exposed for the database.
# displayName: Database Service Name
# name: DATABASE_SERVICE_NAME
# required: true
# value: postgresql
- description: The name of the OpenShift Service exposed for the database.
displayName: Database Service Name
name: DATABASE_SERVICE_NAME
required: true
value: postgresql
- description: Username for PostgreSQL user that will be used for accessing the database.
name: POSTGRESQL_USER
required: true
Expand Down Expand Up @@ -69,6 +69,7 @@ objects:
database-name: ${POSTGRESQL_DATABASE}
database-password: ${POSTGRESQL_PASSWORD}
database-user: ${POSTGRESQL_USER}
database-host: postgresql
fdw-database-user: proxy_wells_gwells
fdw-database-password: ${FDW_DATABASE_PASSWORD}
fdw-database-server: "//nrk1-scan.bcgov/envprod1.nrs.bcgov"
Expand Down

0 comments on commit 7e01f32

Please sign in to comment.