2023-08-07 13:00:37 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ "${ENABLE_ERIC}" == "true" ]; then
|
|
|
|
log INFO "BBMRI-ERIC setup detected -- will start services for BBMRI-ERIC."
|
|
|
|
OVERRIDE+=" -f ./$PROJECT/modules/eric-compose.yml"
|
|
|
|
|
2024-01-08 13:03:12 +01:00
|
|
|
# The environment needs to be defined in /etc/bridgehead
|
|
|
|
case "$ENVIRONMENT" in
|
|
|
|
"production")
|
2024-01-09 11:43:57 +01:00
|
|
|
export ERIC_BROKER_ID=broker.bbmri.samply.de
|
|
|
|
export ERIC_ROOT_CERT=eric
|
2024-01-08 13:03:12 +01:00
|
|
|
;;
|
|
|
|
"test")
|
2024-01-09 11:43:57 +01:00
|
|
|
export ERIC_BROKER_ID=broker-test.bbmri-test.samply.de
|
|
|
|
export ERIC_ROOT_CERT=eric.test
|
2024-01-08 13:03:12 +01:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
report_error 6 "Environment \"$ENVIRONMENT\" is unknown. Assuming production. FIX THIS!"
|
2024-01-09 11:43:57 +01:00
|
|
|
export ERIC_BROKER_ID=broker.bbmri.samply.de
|
|
|
|
export ERIC_ROOT_CERT=eric
|
2024-01-08 13:03:12 +01:00
|
|
|
;;
|
|
|
|
esac
|
2024-01-05 11:58:42 +01:00
|
|
|
|
2023-08-07 13:00:37 +02:00
|
|
|
ERIC_BROKER_URL=https://${ERIC_BROKER_ID}
|
|
|
|
ERIC_PROXY_ID=${SITE_ID}.${ERIC_BROKER_ID}
|
|
|
|
ERIC_FOCUS_BEAM_SECRET_SHORT="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
|
|
|
|
ERIC_SUPPORT_EMAIL=bridgehead@helpdesk.bbmri-eric.eu
|
|
|
|
fi
|