mirror of https://github.com/samply/bridgehead.git
Auto generate mappings
This commit is contained in:
parent
62db3c3685
commit
895cd1f67b
|
@ -0,0 +1,17 @@
|
|||
|
||||
{
|
||||
"sites": [
|
||||
{
|
||||
"id": "$SITE_ID",
|
||||
"name": "$SITE_ID",
|
||||
"virtualhost": "opal-$SITE_ID",
|
||||
"beamconnect": "datashield-connect.$SITE_ID.broker.ccp-it.dktk.dkfz.de"
|
||||
},
|
||||
{
|
||||
"id": "$SITE_ID",
|
||||
"name": "$SITE_ID",
|
||||
"virtualhost": "opal-$SITE_ID",
|
||||
"beamconnect": "datashield-connect.$SITE_ID.broker.ccp-it.dktk.dkfz.de"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -12,4 +12,12 @@ if [ "$ENABLE_DATASHIELD" == true ]; then
|
|||
chown -R bridgehead:docker /tmp/bridgehead/
|
||||
chmod g+r /tmp/bridgehead/opal-key.pem
|
||||
fi
|
||||
mkdir -p /tmp/bridgehead/opal-map
|
||||
jq -n --argfile input ./$PROJECT/modules/datashield-mappings.json '
|
||||
{
|
||||
"external": "opal-'"$SITE_ID"'",
|
||||
"internal": "opal:8080",
|
||||
"allowed": [$input.sites[].id | "datashield-connect.\(.).broker.ccp-it.dktk.dkfz.de"]
|
||||
}' > /tmp/bridgehead/opal-map/local.json
|
||||
cp ./$PROJECT/modules/datashield-mappings.json /tmp/bridgehead/opal-map/central.json
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue