summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2020-09-21 16:18:30 +0200
committersebdet <sebastien.determe@intl.att.com>2020-09-21 16:28:37 +0200
commiteaf160bfec1b3b615cbc7912cb029d9a6eb887e7 (patch)
treea6b1a20a68610861d99c3e8c19c6b91e5ba1c772
parent84ae2556d169d0226985d2029c173e6ca33b8553 (diff)
Use the onap image
Use the baseline image for onap: onap/integration-java11:7.1.0 Issue-ID: CLAMP-943 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I9207c2861e82a0506c47213ecd2876aa1a4c6b79 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
-rw-r--r--src/main/docker/backend/Dockerfile17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/main/docker/backend/Dockerfile b/src/main/docker/backend/Dockerfile
index 5b4b80949..06a05abf7 100644
--- a/src/main/docker/backend/Dockerfile
+++ b/src/main/docker/backend/Dockerfile
@@ -21,7 +21,7 @@
#
###
-FROM onap/policy-jdk-debian:2.0.1
+FROM onap/integration-java11:7.1.0
MAINTAINER "The Onap Team"
LABEL Description="This immage contains alpine, openjdk 11 and clamp"
@@ -33,17 +33,6 @@ ENV HTTPS_PROXY=$https_proxy
ENV http_proxy=$HTTP_PROXY
ENV https_proxy=$HTTPS_PROXY
-RUN addgroup onap
-RUN useradd -g onap clamp
-VOLUME /opt/clamp/config
-RUN mkdir /var/log/onap
-RUN chmod a+rwx /var/log/onap
+VOLUME /app/config
-COPY onap-clamp-backend/clamp.jar /opt/clamp/app.jar
-RUN chmod 700 /opt/clamp/app.jar
-
-RUN chown -R clamp:onap /opt/clamp
-
-USER clamp
-WORKDIR /opt/clamp/
-ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Xms256m", "-Xmx1g", "-jar" ,"./app.jar"]
+COPY onap-clamp-backend/clamp.jar /app/app.jar \ No newline at end of file