bridgehead/bbmri/modules/gbn-setup.sh

29 lines
861 B
Bash
Raw Permalink Normal View History

2023-08-07 13:00:37 +02:00
#!/bin/bash
if [ "${ENABLE_GBN}" == "true" ]; then
log INFO "GBN setup detected -- will start services for German Biobank Node."
2024-04-18 11:01:04 +02:00
OVERRIDE+=" -f ./$PROJECT/modules/gbn-compose.yml"
2023-08-07 13:00:37 +02:00
2024-01-08 15:49:28 +01:00
# The environment needs to be defined in /etc/bridgehead
case "$ENVIRONMENT" in
"production")
2024-01-09 11:43:57 +01:00
export GBN_BROKER_ID=broker.bbmri.de
export GBN_ROOT_CERT=gbn
2024-01-08 15:49:28 +01:00
;;
"test")
2024-01-09 11:43:57 +01:00
export GBN_BROKER_ID=broker.test.bbmri.de
export GBN_ROOT_CERT=gbn.test
2024-01-08 15:49:28 +01:00
;;
*)
report_error 6 "Environment \"$ENVIRONMENT\" is unknown. Assuming production. FIX THIS!"
2024-01-09 11:43:57 +01:00
export GBN_BROKER_ID=broker.bbmri.de
export GBN_ROOT_CERT=gbn
2024-01-08 15:49:28 +01:00
;;
esac
2024-04-18 11:01:04 +02:00
GBN_BROKER_URL=https://${GBN_BROKER_ID}
2023-08-07 13:00:37 +02:00
GBN_PROXY_ID=${SITE_ID}.${GBN_BROKER_ID}
GBN_FOCUS_BEAM_SECRET_SHORT="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
2023-09-04 15:54:22 +02:00
GBN_SUPPORT_EMAIL=feedback@germanbiobanknode.de
2023-08-07 13:00:37 +02:00
fi