Bugfix: datashield local.json as array

This commit is contained in:
juarez 2023-09-22 15:36:21 +02:00
parent 8e181a85c2
commit b7c6b15425
1 changed files with 2 additions and 2 deletions

View File

@ -13,11 +13,11 @@ if [ "$ENABLE_DATASHIELD" == true ]; then
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
}]' > /tmp/bridgehead/opal-map/local.json
cp -f ./$PROJECT/modules/datashield-mappings.json /tmp/bridgehead/opal-map/central.json
chown -R bridgehead:docker /tmp/bridgehead/
fi