diff --git a/bridgehead b/bridgehead index cbe7527..c97dfc6 100755 --- a/bridgehead +++ b/bridgehead @@ -35,6 +35,9 @@ case "$PROJECT" in cce) #nothing extra to do ;; + pscc) + #nothing extra to do + ;; itcc) #nothing extra to do ;; diff --git a/lib/prepare-system.sh b/lib/prepare-system.sh index b6aba52..a4f68d2 100755 --- a/lib/prepare-system.sh +++ b/lib/prepare-system.sh @@ -55,6 +55,9 @@ case "$PROJECT" in cce) site_configuration_repository_middle="git.verbis.dkfz.de/cce-sites/" ;; + pscc) + site_configuration_repository_middle="git.verbis.dkfz.de/pscc-sites/" + ;; itcc) site_configuration_repository_middle="git.verbis.dkfz.de/itcc-sites/" ;; diff --git a/pscc/modules/lens-compose.yml b/pscc/modules/lens-compose.yml new file mode 100644 index 0000000..cf56658 --- /dev/null +++ b/pscc/modules/lens-compose.yml @@ -0,0 +1,34 @@ +version: "3.7" +services: + landing: + container_name: lens_federated-search + image: docker.verbis.dkfz.de/ccp/lens:${SITE_ID} + labels: + - "traefik.enable=true" + - "traefik.http.routers.landing.rule=PathPrefix(`/`)" + - "traefik.http.services.landing.loadbalancer.server.port=5173" + - "traefik.http.routers.landing.middlewares=auth" + - "traefik.http.routers.landing.tls=true" + +# spot: +# image: docker.verbis.dkfz.de/ccp-private/central-spot +# environment: +# BEAM_SECRET: "${FOCUS_BEAM_SECRET_SHORT}" +# BEAM_URL: http://beam-proxy:8081 +# BEAM_PROXY_ID: ${SITE_ID} +# BEAM_BROKER_ID: ${BROKER_ID} +# BEAM_APP_ID: "focus" +# PROJECT_METADATA: "cce_supervisors" +# depends_on: +# - "beam-proxy" +# labels: +# - "traefik.enable=true" +# - "traefik.http.services.spot.loadbalancer.server.port=8080" +# - "traefik.http.middlewares.corsheaders2.headers.accesscontrolallowmethods=GET,OPTIONS,POST" +# - "traefik.http.middlewares.corsheaders2.headers.accesscontrolalloworiginlist=https://${HOST}" +# - "traefik.http.middlewares.corsheaders2.headers.accesscontrolallowcredentials=true" +# - "traefik.http.middlewares.corsheaders2.headers.accesscontrolmaxage=-1" +# - "traefik.http.routers.spot.rule=Host(`${HOST}`) && PathPrefix(`/backend`)" +# - "traefik.http.middlewares.stripprefix_spot.stripprefix.prefixes=/backend" +# - "traefik.http.routers.spot.tls=true" +# - "traefik.http.routers.spot.middlewares=corsheaders2,stripprefix_spot" diff --git a/pscc/modules/lens-setup.sh b/pscc/modules/lens-setup.sh new file mode 100644 index 0000000..c19dc4b --- /dev/null +++ b/pscc/modules/lens-setup.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +if [ -n "$ENABLE_LENS" ];then + OVERRIDE+=" -f ./$PROJECT/modules/lens-compose.yml" +fi \ No newline at end of file