Integrating cbioportal

This commit is contained in:
root 2023-12-15 12:30:14 +01:00 committed by djuarezgf
parent 9f97792d6a
commit 66d4629978
2 changed files with 26 additions and 19 deletions

View File

@ -1,22 +1,29 @@
version: '3.7'
services:
# cbioportal:
# image: docker.verbis.dkfz.de/ccp/dktk-cbioportal:latest
# container_name: bridgehead-cbioportal
# environment:
# DB_PASSWORD: ${CBIOPORTAL_DB_PASSWORD}
# depends_on:
# - cbioportal-database
# - cbioportal-session
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.cbioportal.rule=PathPrefix(`/cbioportal`)"
# - "traefik.http.services.cbioportal.loadbalancer.server.port=8080"
# - "traefik.http.routers.cbioportal.tls=true"
# - "traefik.http.routers.cbioportal-update.rule=PathPrefix(`/cbioportal-update`)"
# - "traefik.http.services.cbioportal-update.loadbalancer.server.port=8001"
# - "traefik.http.routers.cbioportal-update.tls=true"
cbioportal:
#image: docker.verbis.dkfz.de/ccp/dktk-cbioportal:latest
image: dktk-cbioportal
container_name: bridgehead-cbioportal
environment:
DB_PASSWORD: ${CBIOPORTAL_DB_PASSWORD}
HTTP_RELATIVE_PATH: "/cbioportal"
UPLOAD_HTTP_RELATIVE_PATH: "/cbioportal-upload"
depends_on:
- cbioportal-database
- cbioportal-session
labels:
- "traefik.enable=true"
- "traefik.http.routers.cbioportal.rule=PathPrefix(`/cbioportal`)"
- "traefik.http.routers.cbioportal.service=cbioportal
- "traefik.http.services.cbioportal.loadbalancer.server.port=8080"
- "traefik.http.routers.cbioportal.tls=true"
- "traefik.http.routers.cbioportal-upload.rule=PathPrefix(`/cbioportal-upload`)"
- "traefik.http.routers.cbioportal-upload.service=cbioportal-upload
- "traefik.http.routers.cbioportal-upload.tls=true"
- "traefik.http.services.cbioportal-upload.loadbalancer.server.port=8001"
cbioportal-database:
#image: docker.verbis.dkfz.de/ccp/dktk-cbioportal-database:latest

View File

@ -1,8 +1,8 @@
#!/bin/bash -e
if [ "$ENABLE_CBIOPORTAL" == true ]; then
# if [ "$ENABLE_CBIOPORTAL" == true ]; then
log INFO "cBioPortal setup detected -- will start cBioPortal service."
OVERRIDE+=" -f ./$PROJECT/modules/cbioportal-compose.yml"
CBIOPORTAL_DB_PASSWORD="$(echo \"This is a salt string to generate one consistent password for the cbioportal database. It is not required to be secret.\" | openssl rsautl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"
CBIOPORTAL_DB_ROOT_PASSWORD="$(echo \"This is a salt string to generate one consistent root password for the cbioportal database. It is not required to be secret.\" | openssl rsautl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 64)"
fi
# fi