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
5b1ac82e
Commit
5b1ac82e
authored
Aug 19, 2021
by
Aryaan Singh
Browse files
Modify Data Seeding Docker Env names
parent
eb53407a
Pipeline
#59633
passed with stages
in 54 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
tools/data_seeding_agent/docker-compose.yaml
View file @
5b1ac82e
...
...
@@ -6,9 +6,9 @@ services:
dockerfile
:
./data_seeding_agent/Dockerfile
image
:
msosdu.azurecr.io/data-seeding-agent:$VERSION
environment
:
TENANT_ID
:
$TENANT_ID
PRINCIPAL_ID
:
$PRINCIPAL
_ID
PRINCIPAL_SECRET
:
$PRINCIPAL
_SECRET
PARTITION
_NAME_ARRAY
:
$PARTITION
_NAME_ARRAY
# comma separated list of partitions
ARM_
TENANT_ID
:
$
ARM_
TENANT_ID
ARM_CLIENT_ID
:
$ARM_CLIENT
_ID
ARM_CLIENT_SECRET
:
$ARM_CLIENT
_SECRET
PARTITION
S
:
$PARTITION
S
# comma separated list of partitions
RESOURCE_GROUP_NAME
:
$RESOURCE_GROUP_NAME
VERSION
:
$VERSION
\ No newline at end of file
tools/data_seeding_agent/seed_data.sh
View file @
5b1ac82e
#!/bin/bash
# This logs the Azure CLI in using the configured service principal.
az login
--service-principal
-u
$
PRINCIPAL_ID
-p
$PRINCIPAL
_SECRET
--tenant
$TENANT_ID
az login
--service-principal
-u
$
ARM_CLIENT_ID
-p
$ARM_CLIENT
_SECRET
--tenant
$
ARM_
TENANT_ID
# The Legal_COO.json file needs to be loaded into the Data Partition Storage Account,
# in the container legal-service-azure-configuration.
ENV_VAULT
=
$(
az keyvault list
--resource-group
$RESOURCE_GROUP_NAME
--query
[]
.name
-otsv
)
IFS
=
','
read
-r
-a
partitions
<<<
${
PARTITION
_NAME_ARRAY
}
IFS
=
','
read
-r
-a
partitions
<<<
${
PARTITION
S
}
for
index
in
"
${
!partitions[@]
}
"
do
...
...
Write
Preview
Supports
Markdown
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