build.Containerfile: update reference build to use JDK 17

Also updates the container to Debian Bookworm, because we need
its specific (patched for JDK 17) Gradle version.

Note this change makes the JavaDoc build artifact reproducible.
This commit is contained in:
Andreas Schildbach 2023-09-21 11:56:08 +02:00
parent b6b29a659b
commit bb95ea18d1
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ To get started, it is best to have the latest JDK and Gradle installed. The HEAD
#### Building from the command line
Official builds are currently using JDK 11. Our GitHub Actions build and test with JDK 11, 17 and 21.
Official builds are currently using JDK 17. Our GitHub Actions build and test with JDK 11, 17 and 21.
To perform a full build (_including_ JavaDocs, unit/integration _tests_, and `wallettemplate`) use JDK 17+.

View File

@ -16,11 +16,11 @@
#
# stage: set up debian environment
FROM debian:bullseye-slim AS setup-stage
FROM debian:bookworm-slim AS setup-stage
ENV DEBIAN_FRONTEND noninteractive
RUN /usr/bin/apt-get update && \
/usr/bin/apt-get --yes install openjdk-11-jdk-headless gradle && \
/usr/bin/apt-get --yes install openjdk-17-jdk-headless gradle && \
/usr/sbin/adduser --disabled-login --gecos "" builder
# stage: build