forked from blueperf/acmeair-authservice-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-wf
More file actions
23 lines (17 loc) · 841 Bytes
/
Dockerfile-wf
File metadata and controls
23 lines (17 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM jboss/wildfly:latest
# Enable Jaeger
ENV JAEGER_SERVICE_NAME=jaeger-service
ENV JAEGER_AGENT_HOST=jaeger
ENV JAEGER_REPORTER_LOG_SPANS=false
ENV JAEGER_SAMPLER_TYPE=const
ENV JAEGER_SAMPLER_PARAM=1
COPY target/acmeair-authservice-java-3.3.war /opt/jboss/wildfly/standalone/deployments/
COPY key.p12 /opt/boss/wildfly/
# Avoid annoying CDi INFO Message
RUN sed -i 's/<level name="INFO"/<level name="WARN"/' /opt/jboss/wildfly/standalone/configuration/standalone-microprofile.xml
USER 0
RUN chown jboss:0 /opt/jboss/wildfly/standalone/deployments/acmeair-authservice-java-3.3.war
RUN chown jboss:0 /opt/boss/wildfly/key.p12
USER jboss
ENV KEYSTORE_LOCATION=/opt/boss/wildfly/key.p12
CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-c","standalone-microprofile.xml","-b", "0.0.0.0", "-bmanagement", "0.0.0.0","-Djboss.http.port=9080"]