Skip to content

Commit

Permalink
DTSCCI-812 adding scripts to run a preview dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
gmikerlemos committed Sep 12, 2024
1 parent 770e2d1 commit a80f199
Showing 1 changed file with 209 additions and 0 deletions.
209 changes: 209 additions & 0 deletions charts/civil-citizen-ui/values.preview.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ ccd:
ELASTIC_SEARCH_ENABLED: true
ELASTIC_SEARCH_HOSTS: ${SERVICE_NAME}-es-master:9200
ELASTIC_SEARCH_DATA_NODES_HOSTS: http://${SERVICE_NAME}-es-master:9200
DATA_STORE_DB_PASSWORD: ${POSTGRES_PASSWORD}
keyVaults: []
ingressHost: ccd-data-store-api-${SERVICE_NAME}.preview.platform.hmcts.net
secrets:
Expand All @@ -177,6 +178,7 @@ ccd:
releaseNameOverride: ${SERVICE_NAME}-ccd-definition-store-api
environment:
DEFINITION_STORE_DB_HOST: ${SERVICE_NAME}-postgresql
DEFINITION_STORE_DB_PASSWORD: ${POSTGRES_PASSWORD}
DEFINITION_STORE_IDAM_KEY: ${CCD_DEFINITION_STORE_S2S_SECRET}
DEFINITION_STORE_TX_TIMEOUT_DEFAULT: 60
WELSH_TRANSLATION_ENABLED: false
Expand All @@ -192,6 +194,54 @@ ccd:
disabled: true
keyVaults: []
ingressHost: ccd-definition-store-${SERVICE_NAME}.preview.platform.hmcts.net
elasticsearch:
nameOverride: ${SERVICE_NAME}-es
imageTag: "7.17.1"
initResources:
limits:
cpu: "500m"
memory: "512Mi"
requests:
cpu: "25m"
memory: "512Mi"
logstash:
image: hmctspublic.azurecr.io/ccd/logstash
imageTag: "latest"
extraEnvs:
- name: DATA_STORE_URL
value: jdbc:postgresql://${SERVICE_NAME}-postgresql:5432/data-store?ssl=disable&stringtype=unspecified
- name: DATA_STORE_USER
value: ${POSTGRES_USER}
- name: DATA_STORE_PASS
value: ${POSTGRES_PASSWORD}
- name: DB_URL
value: jdbc:postgresql://${SERVICE_NAME}-postgresql:5432/data-store?ssl=disable&stringtype=unspecified
- name: DB_USER
value: ${POSTGRES_USER}
- name: DB_PWD
value: ${POSTGRES_PASSWORD}
- name: ES_HOSTS
value: http://${SERVICE_NAME}-es-master:9200
- name: ES_DATA_NODES_URL
value: http://${SERVICE_NAME}-es-master:9200
- name: ELASTIC_SEARCH_DATA_NODES_HOSTS
value: http://${SERVICE_NAME}-es-master:9200
- name: ES_URL
value: http://${SERVICE_NAME}-es-master:9200
resources:
requests:
cpu: "500m"
memory: "1024Mi"
limits:
cpu: "2500m"
memory: "1024Mi"
configTpl:
db.url: jdbc:postgresql://${SERVICE_NAME}-postgresql:5432/data-store?ssl=disable&stringtype=unspecified
db.user: ${POSTGRES_USER}
db.pwd: ${POSTGRES_PASSWORD}
es.data.nodes.url: http://${SERVICE_NAME}-es-master:9200
livenessProbe:
initialDelaySeconds: 90

postgresql:
persistence:
Expand Down Expand Up @@ -272,3 +322,162 @@ civil-general-applications:
GA_S2S_AUTHORISED_SERVICES: payment_app,ccd_data,civil_service
CUI_URL: https://${SERVICE_FQDN}

civil-service:
enabled: true
java:
applicationPort: 4000
releaseNameOverride: ${SERVICE_NAME}-civil-service
image: 'hmctspublic.azurecr.io/civil/service:latest'
imagePullPolicy: Always
ingressHost: ${SERVICE_NAME}-civil-service.preview.platform.hmcts.net
devcpuRequests: 500m
devmemoryRequests: 2048Mi
devmemoryLimits: 4096Mi
keyVaults:
civil:
resourceGroup: civil
secrets:
- name: civil-idam-client-secret
alias: CIVIL_CLIENT_SECRET
- name: microservicekey-civil-service
alias: idam.s2s-auth.totp_secret
- name: system-update-user-username
alias: CIVIL_SYSTEM_UPDATE_USERNAME
- name: system-update-user-password
alias: CIVIL_SYSTEM_UPDATE_PASSWORD
- name: cross-access-user-username
alias: CIVIL_CROSS_ACCESS_USERNAME
- name: cross-access-user-password
alias: CIVIL_CROSS_ACCESS_PASSWORD
- name: prd-admin-user-username
alias: CIVIL_PRD_ADMIN_USERNAME
- name: prd-admin-user-password
alias: CIVIL_PRD_ADMIN_PASSWORD
- name: docmosis-api-key
alias: docmosis.tornado.key
- name: gov-notify-pretends-api-key
alias: GOV_NOTIFY_API_KEY
- name: sendgrid-api-key
alias: SENDGRID_API_KEY
- name: robotics-notification-sender
alias: robotics.notification.sender
- name: robotics-notification-recipient
alias: robotics.notification.recipient
- name: launch-darkly-sdk-key-non-prod
alias: LAUNCH_DARKLY_SDK_KEY
- name: robotics-notification-multipartyrecipient
alias: robotics.notification.multipartyrecipient
- name: robotics-notification-recipient-spec
alias: robotics.notification.specRecipient
- name: robotics-notification-recipient-lipj
alias: robotics.notification.lipJRecipient
- name: ordnance-survey-api-key
alias: OS_POSTCODE_LOOKUP_API_KEY
- name: notification-caseworker-spec-receiver
alias: notification.caseworker.spec.receiver
- name: mediation-notification-sender
alias: mediation.emails.sender
- name: mediation-notification-recipient
alias: mediation.emails.recipient
- name: hmc-servicebus-shared-access-key-tf
alias: HMC_HEARINGS_TOPIC_ACCESS_KEY
environment:
IDAM_CLIENT_ID: civil-service
IDAM_CLIENT_REDIRECT_URI: https://civil-ccd-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal/oauth2/callback
IDAM_API_URL: https://idam-api.{{ .Values.global.environment }}.platform.hmcts.net
IDAM_WEB_URL: https://idam-web-public.{{ .Values.global.environment }}.platform.hmcts.net
IDAM_END_SESSION_URL: https://idam-web-public.{{ .Values.global.environment }}.platform.hmcts.net/o/endSession
IDAM_S2S_AUTH_URL: http://rpe-service-auth-provider-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal
MANAGE_CASE_UI_BASE_URL: https://manage-case.{{ .Values.global.environment }}.platform.hmcts.net
SPRING_SECURITY_ENABLED: true
CMC_DB_PORT: 5432
SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_ISSUERURI: https://forgerock-am.service.core-compute-idam-{{ .Values.global.environment }}.internal:8443/openam/oauth2/hmcts
SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_JWKSETURI: https://idam-api.{{ .Values.global.environment }}.platform.hmcts.net/o/jwks
AUTH_IDAM_CLIENT_BASEURL: https://idam-api.{{ .Values.global.environment }}.platform.hmcts.net
AUTH_PROVIDER_SERVICE_CLIENT_BASEURL: http://rpe-service-auth-provider-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal
OIDC_ISSUER: https://forgerock-am.service.core-compute-idam-aat2.internal:8443/openam/oauth2/realms/root/realms/hmcts
TESTING_SUPPORT_ENABLED: true
FEES_API_URL: http://fees-register-api-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal
PAYMENTS_API_URL: http://payment-api-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal
SEND_LETTER_URL: http://rpe-send-letter-service-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal
CUI_URL: https://${SERVICE_FQDN}
CUI_URL_RESPOND_TO_CLAIM: https://${SERVICE_FQDN}/first-contact/start
CLAIM_STORE_URL: http://cmc-claim-store-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal
GENAPP_LRD_URL: http://rd-location-ref-api-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal
GENAPP_JRD_URL: http://rd-judicial-api-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal
DOCMOSIS_TORNADO_URL: https://docmosis.aat.platform.hmcts.net
DOCUMENT_MANAGEMENT_URL: http://dm-store-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal
SPRING_CLOUD_BOOTSTRAP_ENABLED: true
RD_PROFESSIONAL_API_URL: http://rd-professional-api-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal
RD_COMMONDATA_API_URL: http://rd-commondata-api-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal
LAUNCH_DARKLY_ENV: ${SERVICE_FQDN}
CORE_CASE_DATA_API_URL: http://${SERVICE_NAME}-ccd-data-store-api
CASE_DOCUMENT_AM_URL: http://ccd-case-document-am-api-aat.service.core-compute-aat.internal
CMC_DB_HOST: "{{ .Values.postgresql.releaseNameOverride}}"
CMC_DB_CONNECTION_OPTIONS: '?sslmode=allow'
CMC_DB_USERNAME: "{{ .Values.postgresql.auth.username}}"
CMC_DB_PASSWORD: "{{ .Values.postgresql.auth.password}}"
REFERENCE_DATABASE_MIGRATION: true
CAMUNDA_URL: http://${SERVICE_NAME}-camunda/engine-rest/
POLLING_EVENT_EMITTER_ENABLED: false
DOCUMENT_MANAGEMENT_SECURED: true
STITCHING_API_ENABLED: false
SERVICE_REQUEST_UPDATE: https://${SERVICE_NAME}-civil-service.preview.platform.hmcts.net/service-request-update
SERVICE_REQUEST_UPDATE_CLAIM_ISSUED: https://${SERVICE_NAME}-civil-service.preview.platform.hmcts.net/service-request-update-claim-issued
CIVIL_S2S_AUTHORISED_SERVICES: payment_app,ccd_data,civil_service,civil-citizen-ui
ACA_SERVICE_API_BASEURL: http://${SERVICE_NAME}-aac-manage-case-assignment
postgresql:
enabled: true
releaseNameOverride: ${SERVICE_NAME}-postgresql
image:
registry: hmctspublic.azurecr.io
repository: imported/bitnami/postgresql
tag: '11.6.0'
primary:
persistence:
enabled: false
resources:
requests:
cpu: 100m
initdb:
scripts:
init.sql: |
CREATE DATABASE cmc WITH OWNER = hmcts ENCODING = 'UTF-8' CONNECTION LIMIT = -1;
CREATE DATABASE "data-store" WITH OWNER = hmcts ENCODING = 'UTF-8' CONNECTION LIMIT = -1;
CREATE DATABASE "definition-store" WITH OWNER = hmcts ENCODING = 'UTF-8' CONNECTION LIMIT = -1;
CREATE DATABASE "camunda" WITH OWNER = hmcts ENCODING = 'UTF-8' CONNECTION LIMIT = -1;
CREATE DATABASE "role_assignment" WITH OWNER = hmcts ENCODING = 'UTF-8' CONNECTION LIMIT = -1;
CREATE DATABASE "wa-task-management-api" WITH OWNER = hmcts ENCODING = 'UTF-8' CONNECTION LIMIT = -1;
CREATE DATABASE "wa-case-event-handler" WITH OWNER = hmcts ENCODING = 'UTF-8' CONNECTION LIMIT = -1;
CREATE DATABASE "wa_workflow_api" WITH OWNER = hmcts ENCODING = 'UTF-8' CONNECTION LIMIT = -1;
CREATE DATABASE "cft_task_db" WITH OWNER = hmcts ENCODING = 'UTF-8' CONNECTION LIMIT = -1;
CREATE DATABASE "cft_task_db_replica" WITH OWNER = hmcts ENCODING = 'UTF-8' CONNECTION LIMIT = -1;
auth:
username: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
postgresPassword: ${POSTGRES_PASSWORD}

camunda-bpm:
enabled: true
java:
disableKeyVaults: true
devcpuRequests: 500m
devmemoryRequests: 512Mi
devcpuLimits: 1
devmemoryLimits: 1Gi
releaseNameOverride: ${SERVICE_NAME}-camunda
ingressHost: camunda-${SERVICE_FQDN}
environment:
CAMUNDA_API_AUTH_ENABLED: false
CAMUNDA_DB_HOST: ${SERVICE_NAME}-postgresql
CAMUNDA_DB_NAME: camunda
CAMUNDA_DB_PASSWORD: ${POSTGRES_PASSWORD}
CAMUNDA_DB_USER_NAME: ${POSTGRES_USER}
CAMUNDA_DB_CONN_OPTIONS: "?stringtype=unspecified"
CAMUNDA_BPM_DATABASE_SCHEMA_UPDATE: true
TEMP_VAR: false
secrets:
CAMUNDA_DB_PASSWORD:
secretRef: postgres
key: PASSWORD
disabled: true

0 comments on commit a80f199

Please sign in to comment.