mirror of
				https://github.com/samply/bridgehead.git
				synced 2025-11-04 06:00:18 +01:00 
			
		
		
		
	Cleanup dnpm connect module
This commit is contained in:
		@@ -18,7 +18,7 @@ services:
 | 
			
		||||
      - "forward_proxy"
 | 
			
		||||
    volumes:
 | 
			
		||||
      - /etc/bridgehead/trusted-ca-certs:/conf/trusted-ca-certs:ro
 | 
			
		||||
      - /srv/docker/bridgehead/ccp/root-new.crt.pem:/conf/root.crt.pem:ro
 | 
			
		||||
      - /srv/docker/bridgehead/ccp/root.crt.pem:/conf/root.crt.pem:ro
 | 
			
		||||
 | 
			
		||||
  dnpm-beam-connect:
 | 
			
		||||
    depends_on: [ dnpm-beam-proxy ]
 | 
			
		||||
@@ -32,9 +32,11 @@ services:
 | 
			
		||||
      LOCAL_TARGETS_FILE: "./conf/connect_targets.json"
 | 
			
		||||
      HTTP_PROXY: http://forward_proxy:3128
 | 
			
		||||
      HTTPS_PROXY: http://forward_proxy:3128
 | 
			
		||||
      NO_PROXY: dnpm-beam-proxy,dnpm-backend
 | 
			
		||||
      NO_PROXY: dnpm-beam-proxy,dnpm-backend, host.docker.internal
 | 
			
		||||
      RUST_LOG: ${RUST_LOG:-info}
 | 
			
		||||
      NO_AUTH: "true"
 | 
			
		||||
    extra_hosts:
 | 
			
		||||
      - "host.docker.internal:host-gateway"
 | 
			
		||||
    volumes:
 | 
			
		||||
      - /etc/bridgehead/dnpm/local_targets.json:/conf/connect_targets.json:ro
 | 
			
		||||
      - /etc/bridgehead/dnpm/central_targets.json:/conf/central_targets.json:ro
 | 
			
		||||
 
 | 
			
		||||
@@ -5,9 +5,12 @@ if [ -n "${ENABLE_DNPM}" ]; then
 | 
			
		||||
	OVERRIDE+=" -f ./$PROJECT/modules/dnpm-compose.yml"
 | 
			
		||||
 | 
			
		||||
	# Set variables required for Beam-Connect
 | 
			
		||||
	DNPM_APPLICATION_SECRET="$(echo \"This is a salt string to generate one consistent password for DNPM. It is not required to be secret.\" | openssl pkeyutl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"
 | 
			
		||||
	DNPM_BEAM_SECRET_SHORT="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
 | 
			
		||||
	DNPM_BROKER_ID="broker.ccp-it.dktk.dkfz.de"
 | 
			
		||||
	DNPM_BROKER_URL="https://${DNPM_BROKER_ID}"
 | 
			
		||||
	if [ -z ${BROKER_URL_FOR_PREREQ+x} ]; then
 | 
			
		||||
		BROKER_URL_FOR_PREREQ=$DNPM_BROKER_URL
 | 
			
		||||
		log DEBUG "No Broker for clock check set; using $DNPM_BROKER_URL"
 | 
			
		||||
	fi
 | 
			
		||||
	DNPM_PROXY_ID="${SITE_ID}.${DNPM_BROKER_ID}"
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user