Repository navigation
[fix](docker) Restore standalone runtime image builds - #71044
Closed
morningman wants to merge 1 commit into
Closed
morningman wants to merge 1 commit into
morningman wants to merge 1 commit into
Conversation
### Background Doris component Dockerfiles package existing FE, BE and MS binaries. The Ubuntu and UBI release build scripts build a base image and supply it to the component Dockerfiles. CI and downstream packagers can also call the component Dockerfiles directly with their own release archives. ### What problem does this PR solve? Issue Number: None Related PR: apache#70662 (introduced the unpublished base default), apache#70770 (changed the default tag) PR Type: Bugfix Problem Summary: A standalone component build with only `DORIS_VERSION` tries to pull the unpublished `apache/doris:base-8.0-ubuntu26.04-jdk17` tag. For example, with a 4.1.9 release-layout fixture in the FE context, run: ```sh docker buildx build --platform linux/arm64 --build-arg DORIS_VERSION=4.1.9 docker/runtime/fe ``` BuildKit reports `docker.io/apache/doris:base-8.0-ubuntu26.04-jdk17: not found` on the baseline. The same build completes with a runnable Java 17 after the fix. ### Details - **Frequency:** Always when building a component with the default base and Docker Hub cannot supply the tag. - **Root cause:** Each component Dockerfile uses the tag generated by the release build helper as its implicit base. A direct build needs to resolve that tag before it can copy the release files. - **Why existing tests missed it:** `test_docker_build.py` stubs Docker and checks the explicit base passed by the release scripts. The Doris regression suites exercise running clusters. - **Fix:** Use the published `base-6.0` index, pinned by digest, for standalone builds. Its stage selects Java by release version or an explicit `JAVA_VERSION`. BuildKit skips this stage when the caller supplies `BASE_IMAGE`. - **Other paths and branches:** FE, BE and MS share the failure. All-in-one and compose use their own bases. The local 4.1 and 4.2 backport branches of apache#70662 carry the same pattern with the earlier 7.0 tag. The inspected Apache 3.1, 4.0, 4.1 and 4.2 tracking refs use earlier defaults. - **Behavior change:** The standalone compatibility path inherits the older OS and JDK layers. The Ubuntu and UBI release scripts explicitly supply their hardened bases. ### Testing - Reproduced the missing tag with an ARM64 FE fixture on `6261b18dc35`. The patched build copied the fixture, pruned FE's bundled artifacts and ran Java 17. - Built ARM64 FE, BE and MS and AMD64 FE with the default base. Verified Java 8 selection and override, and checked the error for an unsupported JDK. - Built all three ARM64 components with explicit Ubuntu 26.04 and UBI 9 bases. The FE layer checker passed for both. - All ten cases in `docker/runtime/tests/test_docker_build.py` passed locally. ### Release note Standalone FE, BE and MS Dockerfile builds can use the published compatibility base without a separate base build. ### Check List (For Author) - Behavior changed: Yes (see Details) - Does this need documentation: No. The runtime README documents the compatibility and hardened build options. - Pre-submission status: Partially verified: local tests used release-layout fixtures. Full release payloads and cluster startup were not exercised. ### AI Disclosure - Tool: Codex (GPT-6) - Generated: Dockerfile changes, README, local verification fixture, and description - Human review: not stated
morningman
marked this pull request as draft
November 26, 2026 02:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Doris component Dockerfiles package existing FE, BE and MS binaries.
The Ubuntu and UBI release build scripts build a base image and supply it
to the component Dockerfiles. CI and downstream packagers can also call
the component Dockerfiles directly with their own release archives.
What problem does this PR solve?
Issue Number: None
Related PR: #70662 (introduced the unpublished base default), #70770 (changed the default tag)
PR Type: Bugfix
Problem Summary:
A standalone component build with only
DORIS_VERSIONtries to pull theunpublished
apache/doris:base-8.0-ubuntu26.04-jdk17tag. For example, witha 4.1.9 release-layout fixture in the FE context, run:
BuildKit reports
docker.io/apache/doris:base-8.0-ubuntu26.04-jdk17: not foundon the baseline. The same build completes with a runnable Java 17 after
the fix.
Details
test_docker_build.pystubs Docker and checks the explicit base passed by the release scripts. The Doris regression suites exercise running clusters.base-6.0index, pinned by digest, for standalone builds. Its stage selects Java by release version or an explicitJAVA_VERSION. BuildKit skips this stage when the caller suppliesBASE_IMAGE.Testing
6261b18dc35. The patched build copied the fixture, pruned FE's bundled artifacts and ran Java 17.docker/runtime/tests/test_docker_build.pypassed locally.Release note
Standalone FE, BE and MS Dockerfile builds can use the published compatibility base without a separate base build.
Check List (For Author)
AI Disclosure