generated from hmcts/expressjs-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DTSCCI-812 add preview dev env (#4467)
* DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment * DTSCCI-812 adding scripts to run a preview dev environment --------- Co-authored-by: mfallonhmcts <[email protected]>
- Loading branch information
1 parent
1d25be4
commit 286681a
Showing
3 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
ccdBranch=${1:-master} | ||
camundaBranch=${2:-master} | ||
dmnBranch=${3:-master} | ||
waStandaloneBranch=${4:-master} | ||
generalAppCCDBranch=${5:-master} | ||
|
||
echo "Loading Environment Variables" | ||
source ./bin/variables/load-dev-user-preview-environment-variables.sh | ||
|
||
echo "Importing Roles to the CCD pod" | ||
./bin/add-roles.sh | ||
|
||
echo "Importing Camunda definitions" | ||
./bin/pull-latest-camunda-files.sh ${camundaBranch} | ||
./bin/pull-latest-dmn-files.sh ${dmnBranch} | ||
./bin/pull-latest-camunda-wa-files.sh ${waStandaloneBranch} | ||
|
||
echo "Importing CCD definitions" | ||
./bin/import-ccd-definition.sh "-e *-prod.json,*-shuttered.json" ${ccdBranch} | ||
./bin/import-ga-ccd-definition.sh "-e *-prod.json" ${generalAppCCDBranch} | ||
|
||
rm -rf $(pwd)/ccd-definitions | ||
rm -rf $(pwd)/build/ccd-development-config | ||
rm -rf $(pwd)/civil-bpmn | ||
|
||
echo "ENV variables set for devuser-preview environment." | ||
echo "XUI_URL: $XUI_WEBAPP_URL" | ||
echo "CUI_URL: $TEST_URL" |
29 changes: 29 additions & 0 deletions
29
bin/variables/load-dev-user-preview-environment-variables.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
user=$(whoami) | ||
echo "User directory: /Users/$user" | ||
|
||
source .env.local | ||
|
||
export ENVIRONMENT=preview | ||
# urls | ||
export URL=$XUI_WEBAPP_URL | ||
export CIVIL_SERVICE_URL=$CIVIL_SERVICE_URL | ||
export SERVICE_AUTH_PROVIDER_API_BASE_URL="http://rpe-service-auth-provider-aat.service.core-compute-aat.internal" | ||
export IDAM_API_BASE_URL="https://idam-api.aat.platform.hmcts.net" | ||
export IDAM_API_URL="https://idam-api.aat.platform.hmcts.net" | ||
export CCD_IDAM_REDIRECT_URL="https://ccd-case-management-web-aat.service.core-compute-aat.internal/oauth2redirect" | ||
export CCD_DEFINITION_STORE_API_BASE_URL=$CCD_DEFINITION_STORE_API_URL | ||
export CAMUNDA_BASE_URL=$CAMUNDA_URL | ||
export DEFINITION_IMPORTER_USERNAME=$(az keyvault secret show --vault-name civil-aat --name ccd-importer-username --query value -o tsv) | ||
export DEFINITION_IMPORTER_PASSWORD=$(az keyvault secret show --vault-name civil-aat --name ccd-importer-password --query value -o tsv) | ||
export CCD_CONFIGURER_IMPORTER_USERNAME=$DEFINITION_IMPORTER_USERNAME | ||
export CCD_CONFIGURER_IMPORTER_PASSWORD=$DEFINITION_IMPORTER_PASSWORD | ||
export CCD_API_GATEWAY_IDAM_CLIENT_SECRET=$(az keyvault secret show --vault-name ccd-aat --name ccd-api-gateway-oauth2-client-secret --query value -o tsv) | ||
export CCD_API_GATEWAY_S2S_SECRET=$(az keyvault secret show --vault-name s2s-aat --name microservicekey-ccd-gw --query value -o tsv) | ||
export S2S_SECRET=$(az keyvault secret show --vault-name civil-aat --name microservicekey-civil-service --query value -o tsv) | ||
# definition placeholders | ||
export CCD_DEF_CASE_SERVICE_BASE_URL=$CIVIL_SERVICE_URL | ||
export CCD_DEF_GEN_APP_SERVICE_BASE_URL=$GENERAL_APPLICATIONS_URL | ||
export HEALTH_WORK_ALLOCATION_TASK_API=TBD |