Upgrade openjdk to 1.11
@@ -53,7 +53,7 @@ RUN sed -i -e '/^deb-src/d' /etc/apt/sources.list &&\
curl \
dpkg \
net-tools \
- openjdk-10-jdk \
+ openjdk-11-jdk \
python-software-properties \
software-properties-common \
wget \
@@ -255,14 +255,14 @@ RUN apt update &&\
RUN add-apt-repository ppa:openjdk-r/ppa &&\
apt update &&\
- apt install -y openjdk-10-jdk maven
+ apt install -y openjdk-11-jdk maven
ARG TARGET_ARCH
-RUN mkdir -p /opt/root &&\
- rm -f /usr/lib/jvm/java-10-openjdk-${TARGET_ARCH}/src.zip &&\
- cp -rL /usr/lib/jvm/java-10-openjdk-${TARGET_ARCH} /opt/root/jre &&\
- rm -rf /opt/root/jre/man
+RUN mkdir -p /opt/root/jre &&\
+ rm -f /usr/lib/jvm/java-11-openjdk-${TARGET_ARCH}/lib/src.zip &&\
+ cp -rL /usr/lib/jvm/java-11-openjdk-${TARGET_ARCH}/bin /opt/root/jre/ &&\
+ cp -rL /usr/lib/jvm/java-11-openjdk-${TARGET_ARCH}/lib /opt/root/jre/
COPY java/ /usr/src/agent-java/
RUN cd /usr/src/agent-java/runner &&\
