summaryrefslogtreecommitdiffstats
path: root/src/main/docker
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2020-03-02 15:22:57 -0800
committerSébastien Determe <sebastien.determe@intl.att.com>2020-03-02 23:24:29 +0000
commit62b188b6b689aa94ea60a3f19ec1286b3206ea0a (patch)
tree6768526930ff69eb81d28c2f7348e89fb042cfc8 /src/main/docker
parent47caef3827de362e7b6204b01d73238fb6faa714 (diff)
Update docker image
Update docker base image so that clamp uses the official onap jdk image Issue-ID: CLAMP-625 Change-Id: I68525be3d6bfbf5dd7c5bcf6d59863df07fd4dd9 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'src/main/docker')
-rw-r--r--src/main/docker/backend/Dockerfile16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/main/docker/backend/Dockerfile b/src/main/docker/backend/Dockerfile
index c2b76b0b..5b4b8094 100644
--- a/src/main/docker/backend/Dockerfile
+++ b/src/main/docker/backend/Dockerfile
@@ -21,7 +21,7 @@
#
###
-FROM alpine:3.10.3
+FROM onap/policy-jdk-debian:2.0.1
MAINTAINER "The Onap Team"
LABEL Description="This immage contains alpine, openjdk 11 and clamp"
@@ -33,9 +33,8 @@ ENV HTTPS_PROXY=$https_proxy
ENV http_proxy=$HTTP_PROXY
ENV https_proxy=$HTTPS_PROXY
-RUN apk --no-cache add openjdk11 --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
-
-RUN addgroup onap && adduser -D -G onap clamp
+RUN addgroup onap
+RUN useradd -g onap clamp
VOLUME /opt/clamp/config
RUN mkdir /var/log/onap
RUN chmod a+rwx /var/log/onap
@@ -45,15 +44,6 @@ RUN chmod 700 /opt/clamp/app.jar
RUN chown -R clamp:onap /opt/clamp
-RUN apk add fontconfig
-RUN apk add ttf-dejavu
-
-RUN ln -s /usr/lib/libfontconfig.so.1 /usr/lib/libfontconfig.so && \
- ln -s /lib/libuuid.so.1 /usr/lib/libuuid.so.1 && \
- ln -s /lib/libc.musl-x86_64.so.1 /usr/lib/libc.musl-x86_64.so.1
-
-ENV LD_LIBRARY_PATH /usr/lib
-
USER clamp
WORKDIR /opt/clamp/
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Xms256m", "-Xmx1g", "-jar" ,"./app.jar"]