mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-31 02:37:05 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			825 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			825 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| set -u
 | |
| 
 | |
| PROMETHEUS_AGENT=""
 | |
| if [[ ${ENABLE_PROMETHEUS:-false} == true ]]; then
 | |
|   PROMETHEUS_AGENT="-javaagent:jmx_prometheus_javaagent.jar=4318:/datahub-frontend/client-prometheus-config.yaml"
 | |
| fi
 | |
| 
 | |
| OTEL_AGENT=""
 | |
| if [[ ${ENABLE_OTEL:-false} == true ]]; then
 | |
|   OTEL_AGENT="-javaagent:/opentelemetry-javaagent-all.jar"
 | |
| fi
 | |
| 
 | |
| # make sure there is no whitespace at the beginning and the end of 
 | |
| # this string
 | |
| export JAVA_OPTS="-Xms512m \
 | |
|    -Xmx1024m \
 | |
|    -Dhttp.port=$SERVER_PORT \
 | |
|    -Dconfig.file=datahub-frontend/conf/application.conf \
 | |
|    -Djava.security.auth.login.config=datahub-frontend/conf/jaas.conf \
 | |
|    -Dlogback.configurationFile=datahub-frontend/conf/logback.xml \
 | |
|    -Dlogback.debug=false \
 | |
|    ${PROMETHEUS_AGENT:-} ${OTEL_AGENT:-}
 | |
|    -Dpidfile.path=/dev/null"
 | |
| 
 | |
| exec ./datahub-frontend/bin/datahub-frontend
 | |
| 
 | 
