Skip to content

Commit 90b700c

Browse files
amuraruCopilot
andcommitted
fix(kafka): match alternate JDK repository layout
Use only the Java major version as the alternate download directory and reserve java_download_version for archive filenames. Keep Oracle URLs unchanged and align the download documentation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e59b709 commit 90b700c

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎docker/kafka/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ RUN --mount=type=secret,id=JAVA_DOWNLOAD_APIKEY,env=JAVA_DOWNLOAD_APIKEY \
6868
\
6969
case "$java_download_base_url" in \
7070
https://download.oracle.com/*) java_download_base_url="${java_download_base_url}/${java_version}/latest" ;; \
71-
*) java_download_base_url="${java_download_base_url}/${java_version}/${java_download_version}" ;; \
71+
*) java_download_base_url="${java_download_base_url}/${java_version}" ;; \
7272
esac; \
7373
\
7474
arch="$(dpkg --print-architecture)"; \

‎docker/kafka/README.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ This is based on [wurstmeister/kafka-docker](https://github.com/wurstmeister/kaf
1616

1717
The Dockerfile defaults to Oracle's public download URL without authentication.
1818
Override `java_download_base_url` and `java_download_version` to use another source.
19-
The Dockerfile appends `java_version` and `latest` for Oracle, or `java_version`
20-
and `java_download_version` for alternate sources. Neither version belongs in the
21-
base URL. Alternate sources must provide the Oracle-style archive filenames and
22-
matching `.sha256` files for each architecture.
19+
The Dockerfile appends `java_version` and `latest` for Oracle, or only
20+
`java_version` for alternate sources. Neither version belongs in the base URL.
21+
`java_download_version` selects the archive filename, not a directory. Alternate
22+
sources must provide the Oracle-style archive filenames and matching `.sha256`
23+
files for each architecture.
2324

2425
For authenticated downloads, pass an optional API key as a BuildKit secret:
2526

0 commit comments

Comments
 (0)