forked from blueperf/acmeair-customerservice-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-base
25 lines (22 loc) · 1.1 KB
/
Dockerfile-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
FROM websphere-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/ibm/wlp/usr https://github.com/WASdev/sample.opentracing.zipkintracer/releases/download/1.3/liberty-opentracing-zipkintracer-1.3-sample.zip \
&& cd /opt/ibm/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/ibm/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-customerservice-java-3.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