aboutsummaryrefslogtreecommitdiffstats
path: root/hv-collector-main/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'hv-collector-main/Dockerfile')
-rw-r--r--hv-collector-main/Dockerfile8
1 files changed, 6 insertions, 2 deletions
diff --git a/hv-collector-main/Dockerfile b/hv-collector-main/Dockerfile
index 1e5f55f8..8216ac46 100644
--- a/hv-collector-main/Dockerfile
+++ b/hv-collector-main/Dockerfile
@@ -1,4 +1,4 @@
-FROM openjdk:10-jre-slim
+FROM docker.io/openjdk:8-jre-slim
LABEL copyright="Copyright (C) 2018 NOKIA"
LABEL license.name="The Apache Software License, Version 2.0"
@@ -11,7 +11,11 @@ RUN apt-get update \
&& apt-get clean
WORKDIR /opt/ves-hv-collector
-ENTRYPOINT ["java", "-cp", "*:", "org.onap.dcae.collectors.veshv.main.MainKt"]
+ENTRYPOINT ["./run-java.sh", "run"]
+COPY target/docker-extra/run-java/run-java.sh ./
+
+ENV JAVA_MAIN_CLASS=org.onap.dcae.collectors.veshv.main.MainKt
+
COPY target/libs/external/* ./
COPY target/libs/internal/* ./
COPY target/hv-collector-main-*.jar ./