From 810e119c730778ce524bc9ddcfde09afa456d3fc Mon Sep 17 00:00:00 2001 From: cyuamber Date: Wed, 16 Sep 2020 16:00:45 +0800 Subject: fix: fix bugs of java 11 installation Change-Id: I648b91046f93066eb34849751a93e9c810b0a7be Issue-ID: USECASEUI-484 Signed-off-by: cyuamber --- distribution/src/main/assembly/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'distribution/src') diff --git a/distribution/src/main/assembly/Dockerfile b/distribution/src/main/assembly/Dockerfile index 20f6b911..cfc6929b 100644 --- a/distribution/src/main/assembly/Dockerfile +++ b/distribution/src/main/assembly/Dockerfile @@ -10,9 +10,9 @@ RUN apt-get update && \ apt-get install -y openjdk-11-jdk #configure the JDK -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 +RUN sed -i 's|#networkaddress.cache.ttl=-1|networkaddress.cache.ttl=10|' /usr/lib/jvm/java-11-*/conf/security/java.security +ENV JAVA_HOME /usr/lib/jvm/java-11-* +ENV PATH $PATH:/usr/lib/jvm/java-11-*/jre/bin ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib ENV JRE_HOME ${JAVA_HOME}/jre -- cgit 1.2.3-korg