Skip to content

Fix Debian 7 docker image builds failing due to outdated wget/curl TLS - #1017

Merged
normanmaurer merged 1 commit into
mainfrom
docker_fix
Sep 21, 2026
Merged

normanmaurer merged 1 commit into
mainfrom
docker_fix

Conversation

@normanmaurer

Copy link
Copy Markdown
Member

Motivation:

Debian 7 (wheezy) is EOL and archive.debian.org has no updated
openssl/ca-certificates package for it. The ancient wget/curl in the
image can no longer complete a TLS handshake with GitHub or
sdkman.io, so downloading CMake, Ninja, Go, the precompiled GCC
toolchain, the OpenSSL source tarball, and SDKMAN/the JDK inside the
debian:7 stage now fails outright, independent of the existing
--no-check-certificate/insecure-ssl workarounds already in place for
the (now separate) certificate-validation problem.

Modifications:

Split Dockerfile.debian into a multi-stage build: a new debian:bookworm-slim
downloader stage with a modern curl fetches all HTTPS artifacts (CMake,
Ninja, Go, the GCC tarball, the OpenSSL source tarball, SDKMAN, and the
JDK), and the debian:7 stage now only COPYs those artifacts in and
compiles, without ever making a TLS connection itself.

Result:

Debian 7 docker images build again.

Motivation:

Debian 7 (wheezy) is EOL and archive.debian.org has no updated
openssl/ca-certificates package for it. The ancient wget/curl in the
image can no longer complete a TLS handshake with GitHub or
sdkman.io, so downloading CMake, Ninja, Go, the precompiled GCC
toolchain, the OpenSSL source tarball, and SDKMAN/the JDK inside the
debian:7 stage now fails outright, independent of the existing
--no-check-certificate/insecure-ssl workarounds already in place for
the (now separate) certificate-validation problem.

Modifications:

Split Dockerfile.debian into a multi-stage build: a new debian:bookworm-slim
downloader stage with a modern curl fetches all HTTPS artifacts (CMake,
Ninja, Go, the GCC tarball, the OpenSSL source tarball, SDKMAN, and the
JDK), and the debian:7 stage now only COPYs those artifacts in and
compiles, without ever making a TLS connection itself.

Result:

Debian 7 docker images build again.
@normanmaurer normanmaurer added this to the 2.0.85.Final milestone Sep 21, 2026
@normanmaurer
normanmaurer merged commit 91e525b into main Sep 21, 2026
17 checks passed
@normanmaurer
normanmaurer deleted the docker_fix branch September 21, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant