aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2020-09-21 16:18:30 +0200
committerS�bastien Determe <sebastien.determe@intl.att.com>2020-09-30 12:54:58 +0000
commit486a761bb7fd8412ef3e382864d8e7f2994fc9f5 (patch)
tree0208864df3df5191b26ba90dfb9ad49b9bd3ffcb
parent44d87c2ce6778a916489945ac33da4942591ea9b (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> (cherry picked from commit eaf160bfec1b3b615cbc7912cb029d9a6eb887e7) Change-Id: Ifc136348b398186d8e5932a43e3325a3975ce74f
-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