nngm migration from connector to nngm-rest

This commit is contained in:
p.delpy@dkfz-heidelberg.de 2023-05-04 15:18:30 +02:00
parent 9260d0132a
commit dd0d2c64fd
2 changed files with 16 additions and 21 deletions

View File

@ -1,32 +1,24 @@
version: "3.7" version: "3.7"
volumes:
nngm-rest:
services: services:
connector: connector:
container_name: bridgehead-connector container_name: bridgehead-connector
image: docker.verbis.dkfz.de/ccp/connector:bk2 image: docker.verbis.dkfz.de/ccp/nngm-rest:main
environment: environment:
POSTGRES_PASSWORD: ${CONNECTOR_POSTGRES_PASSWORD} CTS_MAGICPL_API_KEY: ${NNGM_MAGICPL_APIKEY}
NNGM_MAGICPL_APIKEY: ${NNGM_MAGICPL_APIKEY} CTS_API_KEY: ${NNGM_CTS_APIKEY}
NNGM_MAINZELLISTE_APIKEY: ${NNGM_MAINZELLISTE_APIKEY} CRYPT_KEY: ${NNGM_CRYPTKEY}
NNGM_CTS_APIKEY: ${NNGM_CTS_APIKEY} #CTS_MAGICPL_SITE: ${SITE_ID}TODO
NNGM_CRYPTKEY: ${NNGM_CRYPTKEY}
restart: always restart: always
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.connector.rule=PathPrefix(`/ccp-connector`)" - "traefik.http.routers.connector.rule=PathPrefix(`/nngm-connector`)"
- "traefik.http.middlewares.connector_strip.stripprefix.prefixes=/nngm-connector"
- "traefik.http.services.connector.loadbalancer.server.port=8080" - "traefik.http.services.connector.loadbalancer.server.port=8080"
- "traefik.http.routers.connector.tls=true" - "traefik.http.routers.connector.tls=true"
- "traefik.http.routers.connector.middlewares=connector_strip,auth"
connector_db:
image: docker.verbis.dkfz.de/cache/postgres:9.5-alpine
container_name: bridgehead-ccp-connector-db
volumes: volumes:
- "connector_db_data:/var/lib/postgresql/data" - nngm-rest:/var/log
environment:
POSTGRES_DB: "samplyconnector"
POSTGRES_USER: "samplyconnector"
POSTGRES_PASSWORD: ${CONNECTOR_POSTGRES_PASSWORD}
restart: always
volumes:
connector_db_data:

View File

@ -1,12 +1,15 @@
#!/bin/bash #!/bin/bash
##nNGM vars:
#NNGM_MAGICPL_APIKEY
#NNGM_CTS_APIKEY
#NNGM_CRYPTKEY
function nngmSetup() { function nngmSetup() {
if [ -n "$NNGM_CTS_APIKEY" ]; then if [ -n "$NNGM_CTS_APIKEY" ]; then
log INFO "nNGM setup detected -- will start nNGM Connector." log INFO "nNGM setup detected -- will start nNGM Connector."
OVERRIDE+=" -f ./$PROJECT/nngm-compose.yml" OVERRIDE+=" -f ./$PROJECT/nngm-compose.yml"
fi fi
CONNECTOR_POSTGRES_PASSWORD="$(echo \"This is a salt string to generate one consistent password. It is not required to be secret.\" | openssl rsautl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)" }
}
function mtbaSetup() { function mtbaSetup() {
# TODO: Check if ID-Management Module is activated! # TODO: Check if ID-Management Module is activated!