aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/docker
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2020-09-30 11:55:02 +0200
committersebdet <sebastien.determe@intl.att.com>2020-09-30 11:55:02 +0200
commit8975db7549ae818a152a6c55a960e8d2cfa538da (patch)
tree0f0f99e8889fec4f0bd964920e5c3e9e6dbd0276 /src/main/docker
parentd7ac93f6132146f7475b1a798005f1301ccf864f (diff)
Align clamp path
Align clamp path to what has been developed in OOM Issue-ID: CLAMP-943 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I75b15d2e817b863d6482d422437939986c5be476
Diffstat (limited to 'src/main/docker')
-rw-r--r--src/main/docker/backend/Dockerfile13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/main/docker/backend/Dockerfile b/src/main/docker/backend/Dockerfile
index 06a05abf7..ebc1d57f2 100644
--- a/src/main/docker/backend/Dockerfile
+++ b/src/main/docker/backend/Dockerfile
@@ -24,7 +24,7 @@
FROM onap/integration-java11:7.1.0
MAINTAINER "The Onap Team"
-LABEL Description="This immage contains alpine, openjdk 11 and clamp"
+LABEL Description="This image contains alpine, openjdk 11 and clamp"
ARG http_proxy
ARG https_proxy
@@ -32,7 +32,14 @@ ENV HTTP_PROXY=$http_proxy
ENV HTTPS_PROXY=$https_proxy
ENV http_proxy=$HTTP_PROXY
ENV https_proxy=$HTTPS_PROXY
+USER root
+RUN mkdir /opt/clamp
+RUN chown -R onap:onap /opt/clamp
-VOLUME /app/config
+VOLUME /opt/clamp/config
-COPY onap-clamp-backend/clamp.jar /app/app.jar \ No newline at end of file
+COPY --chown=onap:onap onap-clamp-backend/clamp.jar /opt/clamp/app.jar
+
+USER onap
+WORKDIR /opt/clamp/
+ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom", "-jar" ,"./app.jar"] \ No newline at end of file