From 8caa0e2257b425b51a3892cc3c15c4d605ff056f Mon Sep 17 00:00:00 2001 From: cyuamber Date: Thu, 10 Sep 2020 17:22:51 +0800 Subject: ci: update to java 11 Change-Id: I136b204e782522746e6fed06c9b784e8a5a41bf2 Issue-ID: USECASEUI-484 Signed-off-by: cyuamber --- distribution/src/main/assembly/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'distribution') diff --git a/distribution/src/main/assembly/Dockerfile b/distribution/src/main/assembly/Dockerfile index dc6b5676..821e5fe3 100644 --- a/distribution/src/main/assembly/Dockerfile +++ b/distribution/src/main/assembly/Dockerfile @@ -3,12 +3,12 @@ FROM ubuntu:16.04 EXPOSE 8443 RUN apt-get update && \ - apt-get install -y -qq --no-install-recommends openjdk-8-jdk + apt-get install -y -qq --no-install-recommends openjdk-11-jdk #configure the JDK -RUN sed -i 's|#networkaddress.cache.ttl=-1|networkaddress.cache.ttl=10|' /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/java.security -ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 -ENV PATH $PATH:/usr/lib/jvm/java-8-openjdk-amd64/jre/bin:/usr/lib/jvm/java-8-openjdk-amd64/bin +RUN sed -i 's|#networkaddress.cache.ttl=-1|networkaddress.cache.ttl=10|' /usr/lib/jvm/java-11-openjdk-amd64/jre/lib/security/java.security +ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64 +ENV PATH $PATH:/usr/lib/jvm/java-11-openjdk-amd64/jre/bin:/usr/lib/jvm/java-11-openjdk-amd64/bin ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib ENV JRE_HOME ${JAVA_HOME}/jre -- cgit 1.2.3-korg