From 1c4a920cf7da5940868283ff894e3ccb65be23d4 Mon Sep 17 00:00:00 2001 From: Taka Cho Date: Fri, 18 Dec 2020 09:42:52 -0500 Subject: use java11 jre base from onap 1, use onap/integration-java11 as a base for JRE 2, sym-link to the original JAVA_HOME to ensure all startup scripts worked Issue-ID: POLICY-2917 Change-Id: I2c8333f227f8ae2076a6c784cf344db8fb59345b Signed-off-by: Taka Cho --- policy-jre/alpine/src/main/docker/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/policy-jre/alpine/src/main/docker/Dockerfile b/policy-jre/alpine/src/main/docker/Dockerfile index bf905368..ec950d72 100644 --- a/policy-jre/alpine/src/main/docker/Dockerfile +++ b/policy-jre/alpine/src/main/docker/Dockerfile @@ -23,12 +23,13 @@ # $JAVA_HOME is set to /usr/lib/jvm/java-11-openjdk # more details at https://hub.docker.com/_/openjdk -FROM alpine:3.12.0 +FROM onap/integration-java11:8.0.0 LABEL maintainer="Policy Team" ENV POLICY_HOME=/opt/app/policy +USER root # # When these are done via a single "RUN", I/O errors occur sporadically, # thus they have been split into separate RUNs. @@ -41,8 +42,9 @@ RUN apk update \ procps \ unzip \ zip \ - openjdk11-jre \ && addgroup -S policy \ && adduser -S --shell /bin/sh -G policy policy \ && mkdir -p ${POLICY_HOME}/ \ - && chown policy:policy ${POLICY_HOME} + && chown policy:policy ${POLICY_HOME} \ + && mkdir -p /usr/lib/jvm/ \ + && ln -s /opt/java/openjdk /usr/lib/jvm/java-11-openjdk -- cgit 1.2.3-korg