aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2020-09-16 16:00:45 +0800
committercyuamber <xuranyjy@chinamobile.com>2020-09-16 16:00:50 +0800
commit810e119c730778ce524bc9ddcfde09afa456d3fc (patch)
tree92dcedd1c687764062cb9585d497c60bc8844877
parentdb488b9e48e432ad593fc8244512e0e2b79a48c6 (diff)
fix: fix bugs of java 11 installation
Change-Id: I648b91046f93066eb34849751a93e9c810b0a7be Issue-ID: USECASEUI-484 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
-rw-r--r--distribution/src/main/assembly/Dockerfile6
1 files changed, 3 insertions, 3 deletions
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