From 364bbe5037511a0cd6e7aa833e3bd0b25f4782b7 Mon Sep 17 00:00:00 2001 From: Ekaterina Dimitrova Date: Wed, 24 Aug 2022 11:08:24 -0400 Subject: [PATCH] Add JDK 17 --- docker/testing/ubuntu2004_j11.docker | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/testing/ubuntu2004_j11.docker b/docker/testing/ubuntu2004_j11.docker index 19521bb5..8a329fab 100644 --- a/docker/testing/ubuntu2004_j11.docker +++ b/docker/testing/ubuntu2004_j11.docker @@ -77,7 +77,7 @@ RUN pip3 install --upgrade wheel # openjdk + ant RUN export DEBIAN_FRONTEND=noninteractive && \ apt-get update && \ - apt-get install -y --no-install-recommends openjdk-8-jdk openjdk-11-jdk ant ant-optional + apt-get install -y --no-install-recommends openjdk-8-jdk openjdk-11-jdk openjdk-17-jdk ant ant-optional # make Java 8 the default executable (we use to run all tests against Java 8) RUN update-java-alternatives --set java-1.8.0-openjdk-$(dpkg --print-architecture) @@ -106,6 +106,7 @@ WORKDIR /home/cassandra RUN echo 'export ANT_HOME=/usr/share/ant' >> /home/cassandra/.bashrc && \ echo 'export JAVA8_HOME=/usr/lib/jvm/java-8-openjdk-$(dpkg --print-architecture)' >> /home/cassandra/.bashrc && \ echo 'export JAVA11_HOME=/usr/lib/jvm/java-11-openjdk-$(dpkg --print-architecture)' >> /home/cassandra/.bashrc && \ + echo 'export JAVA17_HOME=/usr/lib/jvm/java-17-openjdk-$(dpkg --print-architecture)' >> /home/cassandra/.bashrc && \ echo 'export JAVA_HOME=$JAVA8_HOME' >> /home/cassandra/.bashrc ENV ANT_HOME=/usr/share/ant