aboutsummaryrefslogtreecommitdiffstats
path: root/standalone/src/main
diff options
context:
space:
mode:
authorhekeguang <hekeguang@chinamobile.com>2020-09-14 10:41:42 +0800
committerhekeguang <hekeguang@chinamobile.com>2020-09-14 10:47:43 +0800
commita64a53cfc8d22f341c7892dd288075d0b5eaf8e6 (patch)
treeb10c33759a4228abe25d346c71e4c8e41669bc40 /standalone/src/main
parent7a47a7e742fe2d4e3ceb9f5e7789f9471631d319 (diff)
Upload Java to version 11 in dockerfile
Issue-ID: USECASEUI-484 Change-Id: Id06d60fbecee4d069c52f9675fa62c9bf83626fb Signed-off-by: hekeguang <hekeguang@chinamobile.com>
Diffstat (limited to 'standalone/src/main')
-rw-r--r--standalone/src/main/assembly/Dockerfile9
1 files changed, 5 insertions, 4 deletions
diff --git a/standalone/src/main/assembly/Dockerfile b/standalone/src/main/assembly/Dockerfile
index 30878be3..b8b0f75e 100644
--- a/standalone/src/main/assembly/Dockerfile
+++ b/standalone/src/main/assembly/Dockerfile
@@ -17,8 +17,9 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list
# Update the Ubuntu and install tools
+add-apt-repository ppa:openjdk-r/ppa \
RUN apt-get update && \
- apt-get install -y openjdk-8-jdk && \
+ apt-get install -y openjdk-11-jdk && \
apt-get install -y gcc && \
apt-get install -y curl && \
apt-get install -y vim && \
@@ -38,9 +39,9 @@ VOLUME ["${PG_HOME}", "${PG_VAR_LIB}", "${PG_LOGDIR}"]
# CMD ["${PG_USR_LIB}/${PG_VERSION}/bin/postgres", "-D", "${PG_VAR_LIB}/${PG_VERSION}/main", "-c", "config_file=${PG_HOME}/${PG_VERSION}/main/postgresql.conf"]
#Configure Java SDK
-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