summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2020-09-10 17:22:51 +0800
committercyuamber <xuranyjy@chinamobile.com>2020-09-10 17:22:56 +0800
commit8caa0e2257b425b51a3892cc3c15c4d605ff056f (patch)
tree0add45a18caae3aab76f7cf978044aab980ec36d
parent9c008de2b7c55a7389fd7d3e8b04888c77af3e60 (diff)
ci: update to java 11
Change-Id: I136b204e782522746e6fed06c9b784e8a5a41bf2 Issue-ID: USECASEUI-484 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
-rw-r--r--distribution/src/main/assembly/Dockerfile8
1 files changed, 4 insertions, 4 deletions
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