Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Deployment and Operations
infra-azure-provisioning
Commits
127e39fb
Commit
127e39fb
authored
Sep 27, 2021
by
Vivek Ojha
Browse files
Merge branch 'users/amaverma/updateSchemaDocM7' into 'release/0.10'
Updating the schema load doc in release 0.10 See merge request
!492
parents
009d825d
c8320469
Pipeline
#67951
passed with stages
in 1 minute and 4 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
docs/service-data.md
View file @
127e39fb
...
...
@@ -11,7 +11,7 @@ UNIQUE="<your_osdu_unique>" # ie: demo
AZURE_DNS_NAME
=
"<your_osdu_fqdn>"
# ie: osdu-$UNIQUE.contoso.com
DATA_PARTITION
=
"<your_partition>"
# ie:opendes
ACR_REGISTRY
=
"<repository>"
# ie: msosdu.azurecr.io
TAG
=
"<app_version>"
# ie: 0.1
0
.0
TAG
=
"<app_version>"
# ie: 0.1
2
.0
# This logs your local Azure CLI in using the configured service principal.
az login
--service-principal
-u
$ARM_CLIENT_ID
-p
$ARM_CLIENT_SECRET
--tenant
$ARM_TENANT_ID
...
...
@@ -21,16 +21,17 @@ ENV_VAULT=$(az keyvault list --resource-group $GROUP --query [].name -otsv)
cat
>
.env
<<
EOF
DATA_PARTITION=
$DATA_PARTITION
AZURE_TENANT_ID=
$ARM_TENANT_ID
AZURE_DNS_NAME=
$AZURE_DNS_NAME
AZURE_TENANT_ID=
$(
az keyvault secret show
--id
https://
${
ENV_VAULT
}
.vault.azure.net/secrets/tenant-id
--query
value
-otsv
)
AZURE_AD_APP_RESOURCE_ID=
$(
az keyvault secret show
--id
https://
${
ENV_VAULT
}
.vault.azure.net/secrets/aad-client-id
--query
value
-otsv
)
AZURE_CLIENT_ID=
$(
az keyvault secret show
--id
https://
${
ENV_VAULT
}
.vault.azure.net/secrets/app-dev-sp-username
--query
value
-otsv
)
AZURE_CLIENT_SECRET=
$(
az keyvault secret show
--id
https://
${
ENV_VAULT
}
.vault.azure.net/secrets/app-dev-sp-password
--query
value
-otsv
)
EOF
# Execute container to load the schema's
docker run
--env-file
.env
$ACR_REGISTRY
/schema-
load
:
$TAG
docker run
--env-file
.env
$ACR_REGISTRY
/schema-
data-init
:
$TAG
```
## Policy Data Loading
Policy Service has standard shared policies that have to be loaded.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment