Commit 0cfbe0f8 authored by Jason's avatar Jason
Browse files

fixing script for well delivery

parent 38215877
......@@ -27,14 +27,14 @@ az login --service-principal -u $ARM_CLIENT_ID -p $ARM_CLIENT_SECRET --tenant $A
**Set required variables**
```bash
export DNS_HOST = ... # ex osdu-glab.msft-osdu-test.org
export NO_ACCESS_ID = ... # value can be retrieved for most cases by using export NO_DATA_ACCESS_TESTER="$(az keyvault secret show --id https://$COMMON_VAULT.vault.azure.net/secrets/osdu-mvp-$UNIQUE-noaccess-clientid --query value -otsv)"
export NO_ACCESS_SECRET = ... # value can be retrieved for most cases by using export NO_DATA_ACCESS_TESTER_SERVICEPRINCIPAL_SECRET="$(az keyvault secret show --id https://$COMMON_VAULT.vault.azure.net/secrets/osdu-mvp-$UNIQUE-noaccess-secret --query value -otsv)"
export NO_DATA_ACCESS_TESTER = ... # value can be retrieved for most cases by using export NO_DATA_ACCESS_TESTER="$(az keyvault secret show --id https://$COMMON_VAULT.vault.azure.net/secrets/osdu-mvp-$UNIQUE-noaccess-clientid --query value -otsv)"
export NO_DATA_ACCESS_TESTER_SERVICEPRINCIPAL_SECRET = ... # value can be retrieved for most cases by using export NO_DATA_ACCESS_TESTER_SERVICEPRINCIPAL_SECRET="$(az keyvault secret show --id https://$COMMON_VAULT.vault.azure.net/secrets/osdu-mvp-$UNIQUE-noaccess-secret --query value -otsv)"
```
**Run the scripts**
```bash
# Example of running single script
./services/well-planning.sh
./services/well-delivery.sh
# Examples of running all scripts
for f in ./services/*.sh; do
......
......@@ -9,7 +9,7 @@
###############################
usage() { echo "Usage: DNS_HOST=<your_host> UNIQUE=<your_enviroment_unique_string> well_planning.sh " 1>&2; exit 1; }
SERVICE="well_planning"
SERVICE="well_delivery"
if [ -z $UNIQUE ]; then
......@@ -81,16 +81,16 @@ DEPLOY_ENV="empty"
STORAGE_URL="https://${DNS_HOST}/api/storage/v2/"
SCHEMA_URL="https://${DNS_HOST}/api/schema-service/v1/"
LEGAL_URL="https://${DNS_HOST}/api/legal/v1/"
ENTITY_URL_LOCAL="http://localhost:8080/api/well-planning/"
ENTITY_URL_REMOTE="https://${DNS_HOST}/api/well-planning/"
ENTITY_URL_LOCAL="http://localhost:8080/api/well-delivery/"
ENTITY_URL_REMOTE="https://${DNS_HOST}/api/well-delivery/"
# Environment Variables
INTEGRATION_TESTER="${ENV_PRINCIPAL_ID}"
TESTER_SERVICEPRINCIPAL_SECRET="${ENV_PRINCIPAL_SECRET}"
AZURE_AD_TENANT_ID="${TENANT_ID}"
AZURE_AD_APP_RESOURCE_ID="${ENV_APP_ID}"
NO_DATA_ACCESS_TESTER="${NO_ACCESS_ID}"
NO_DATA_ACCESS_TESTER_SERVICEPRINCIPAL_SECRET="${NO_ACCESS_SECRET}"
NO_DATA_ACCESS_TESTER="${NO_DATA_ACCESS_TESTER}"
NO_DATA_ACCESS_TESTER_SERVICEPRINCIPAL_SECRET="${NO_DATA_ACCESS_TESTER_SERVICEPRINCIPAL_SECRET}"
cat > environments/${UNIQUE}/${SERVICE}/${SERVICE}_local.yaml <<LOCALRUN
# Constants
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment