forked from AthenZ/athenz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (26 loc) · 938 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM athenz-builder AS builder
FROM openjdk:8-jre-alpine
WORKDIR /opt/athenz/zms
COPY --from=builder /opt/athenz/zms .
ENV JAVA_OPTS=''
ENV CLASSPATH='lib/jars/*'
ENV USER_CLASSPATH='/usr/lib/jars/*'
ENV CONF_PATH='conf/zms_server'
# ENV for passwords
ENV ZMS_JDBC_PASSWORD=''
ENV ZMS_SSL_KEYSTORE_PASS=''
ENV ZMS_SSL_TRUSTSTORE_PASS=''
ENTRYPOINT ["sh", "-c", "eval $0 $@", "java"]
CMD [ \
"${JAVA_OPTS}", \
"-classpath", "${CLASSPATH}:${USER_CLASSPATH}", \
"-Dathenz.prop_file=${CONF_PATH}/athenz.properties", \
"-Dathenz.zms.prop_file=${CONF_PATH}/zms.properties", \
"-Dlogback.configurationFile=${CONF_PATH}/logback.xml", \
# system properties for passwords
"-Dathenz.zms.jdbc_password=${ZMS_JDBC_PASSWORD}", \
"-Dathenz.ssl_key_store_password=${ZMS_SSL_KEYSTORE_PASS}", \
"-Dathenz.ssl_trust_store_password=${ZMS_SSL_TRUSTSTORE_PASS}", \
# main class
"com.yahoo.athenz.container.AthenzJettyContainer" \
]