Added comments explaining how things have been changed for local testing

This commit is contained in:
Bridgehead User 2024-10-18 13:32:06 +02:00
parent bc24599c54
commit 634d4e2a4b
3 changed files with 11 additions and 0 deletions

View File

@ -20,6 +20,9 @@ services:
- "traefik.http.routers.blaze_ccp.middlewares=ccp_b_strip,auth"
- "traefik.http.routers.blaze_ccp.tls=true"
# Modification needed for running in a test mode
# Commented out so that the Bridgehead can run without Beam.
# focus:
# image: docker.verbis.dkfz.de/cache/samply/focus:0.4.4
# container_name: bridgehead-focus
@ -35,6 +38,9 @@ services:
## - "beam-proxy"
# - "blaze"
# Modification needed for running in a test mode
# Commented out so that the Bridgehead can run without Beam.
# beam-proxy:
# image: docker.verbis.dkfz.de/cache/samply/beam-proxy:develop
# container_name: bridgehead-beam-proxy

View File

@ -47,8 +47,10 @@ services:
TEILER_ADMIN: "${OIDC_ADMIN_GROUP}"
REPORTER_DEFAULT_TEMPLATE_ID: "ccp-qb"
EXPORTER_DEFAULT_TEMPLATE_ID: "ccp"
# Modification needed for running in a test mode
APPLICATION_PORT: "8080"
CONFIG_ENV_VAR_PATH: "/run/secrets/ccp.conf"
# Modification needed for running in a test mode
secrets:
- ccp.conf

View File

@ -308,6 +308,7 @@ function sync_secrets() {
BROKER_ROOT_CERT=/srv/docker/bridgehead/bbmri/$GBN_ROOT_CERT.crt.pem
PROXY_ID=$GBN_PROXY_ID
BROKER_ID=$GBN_BROKER_ID
# Modification needed for running in a test mode
elif [ "${PROJECT}" == "ccp" ]; then
BROKER_ROOT_CERT=/srv/docker/bridgehead/ccp/root.crt.pem
else
@ -316,6 +317,8 @@ function sync_secrets() {
local broker_url="https://$BROKER_ID"
mkdir -p /var/cache/bridgehead/secrets/ || fail_and_report 1 "Failed to create '/var/cache/bridgehead/secrets/'. Please run sudo './bridgehead install $PROJECT' again."
touch /var/cache/bridgehead/secrets/oidc
# Modification needed for running in a test mode
# Commented out so that the Bridgehead can run without Beam.
# docker run --rm \
# -v /var/cache/bridgehead/secrets/oidc:/usr/local/cache \
# -v $PRIVATEKEYFILENAME:/run/secrets/privkey.pem:ro \