aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaka Cho <takamune.cho@att.com>2020-12-18 09:42:52 -0500
committerTaka Cho <takamune.cho@att.com>2020-12-18 09:45:50 -0500
commit1c4a920cf7da5940868283ff894e3ccb65be23d4 (patch)
treecd1a75c3561d31ddbf92f75438d8904ced2479b6
parentfd42f6f2ffbf05010414ffa59fc727cd064bfefb (diff)
use java11 jre base from onap2.2.0
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 <takamune.cho@att.com>
-rw-r--r--policy-jre/alpine/src/main/docker/Dockerfile8
1 files 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