From fc4abff333f302ee554ba1e6babe083a4c0e0e08 Mon Sep 17 00:00:00 2001 From: Jakub Dudycz Date: Fri, 9 Nov 2018 11:30:27 +0100 Subject: Switch to JRE 11 in Dockerfiles Change-Id: I3f8cc792677f01b6f4eeb7cc36822b6a9ed482d9 Signed-off-by: Jakub Dudycz Issue-ID: DCAEGEN2-969 --- hv-collector-main/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'hv-collector-main/Dockerfile') diff --git a/hv-collector-main/Dockerfile b/hv-collector-main/Dockerfile index 746deb51..8049abca 100644 --- a/hv-collector-main/Dockerfile +++ b/hv-collector-main/Dockerfile @@ -1,4 +1,4 @@ -FROM docker.io/openjdk:8-jre-slim +FROM docker.io/openjdk:11-jre-slim LABEL copyright="Copyright (C) 2018 NOKIA" LABEL license.name="The Apache Software License, Version 2.0" @@ -10,10 +10,8 @@ RUN apt-get update \ && apt-get clean WORKDIR /opt/ves-hv-collector -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 +ENTRYPOINT ["java", "-cp", "*:", "org.onap.dcae.collectors.veshv.main.MainKt"] COPY target/libs/external/* ./ COPY target/libs/internal/* ./ -- cgit 1.2.3-korg