forked from blueperf/acmeair-authservice-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-ol-base
28 lines (23 loc) · 1.15 KB
/
Dockerfile-ol-base
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
FROM open-liberty:microProfile3
# Install opentracing usr feature
USER 0
RUN apt-get update \
&& apt-get install -y --no-install-recommends unzip wget \
&& rm -rf /var/lib/apt/lists/* \
&& wget -t 10 -x -nd -P /opt/ol/wlp/usr https://github.com/WASdev/sample.opentracing.zipkintracer/releases/download/1.3/liberty-opentracing-zipkintracer-1.3-sample.zip \
&& cd /opt/ol/wlp/usr \
&& unzip liberty-opentracing-zipkintracer-1.3-sample.zip \
&& rm liberty-opentracing-zipkintracer-1.3-sample.zip \
&& apt-get purge --auto-remove -y unzip \
&& apt-get purge --auto-remove -y wget \
&& rm -rf /var/lib/apt/lists/* \
&& chown -R 1001:0 /opt/ol/wlp/usr/extension
USER 1001
COPY --chown=1001:0 src/main/liberty/config/server.xml /config/server.xml
COPY --chown=1001:0 /src/main/liberty/config/jvm.options.base /config/jvm.options
COPY --chown=1001:0 /target/acmeair-authservice-java-3.0.0-SNAPSHOT.war /config/apps/
COPY --chown=1001:0 key.p12 /output/resources/security/key.p12
# https://github.com/WASdev/ci.docker/#enterprise-functionality
ARG HTTP_ENDPOINT=true
#ARG MP_MONITORING=true
RUN configure.sh || if [ $? -ne 22 ]; then exit $?; fi