This is an automated email from the ASF dual-hosted git repository.
vatsrahul1001 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 810cb01e793 Make the add-providers image example work on bookworm and
ARM images (#77098)
810cb01e793 is described below
commit 810cb01e79319ce76a3a4a24cc2b33f26427c98c
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Nov 30 19:25:57 2026 +0100
Make the add-providers image example work on bookworm and ARM images
(#77098)
The example pinned openjdk-21, which only Debian trixie ships, so it fails
to build on the legacy bookworm PROD images that the 3.4.x line still
publishes - the weekly legacy PROD image canary is red because of it. Its
JAVA_HOME also pointed at the amd64 JVM directory, which does not exist on
arm64 images. Debian's default JRE resolves to the right Java for each
release and architecture behind a stable path.
Generated-by: Claude Opus 5
---
docker-stack-docs/docker-examples/extending/add-providers/Dockerfile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/docker-stack-docs/docker-examples/extending/add-providers/Dockerfile
b/docker-stack-docs/docker-examples/extending/add-providers/Dockerfile
index d00babf8051..aacfa8986c8 100644
--- a/docker-stack-docs/docker-examples/extending/add-providers/Dockerfile
+++ b/docker-stack-docs/docker-examples/extending/add-providers/Dockerfile
@@ -21,11 +21,11 @@ FROM apache/airflow:3.5.0
USER root
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
- openjdk-21-jre-headless \
+ default-jre-headless \
&& apt-get autoremove -yqq --purge \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
USER airflow
-ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64
+ENV JAVA_HOME=/usr/lib/jvm/default-java
RUN pip install --no-cache-dir "apache-airflow==${AIRFLOW_VERSION}"
apache-airflow-providers-apache-spark==5.1.1
# [END Dockerfile]