forked from blueperf/acmeair-mainservice-java
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile-ol-base
19 lines (15 loc) · 907 Bytes
/
Dockerfile-ol-base
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM open-liberty:microProfile2
# Install opentracing usr feature
USER 0
RUN apt-get update \
&& apt-get install -y --no-install-recommends wget unzip \
&& rm -rf /var/lib/apt/lists/*
USER 1001
RUN 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
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-mainservice-java-2.0.0-SNAPSHOT.war /config/apps/
# 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