Repository navigation
[chore](build) Upgrade runtime images to Ubuntu 26.04 and add UBI 9 - #70770
Merged
morningman merged 1 commit intoNov 20, 2026
Merged
Conversation
### Background The runtime image builder packages existing Doris releases into FE, BE and MS images with a selected JDK and Operator tools. Component images share one base, while all-in-one and doris-compose use their own Temurin bases. These paths currently use Ubuntu 22.04. ### What problem does this PR solve? Issue Number: None Related PR: None PR Type: Build/CI/Chore Problem Summary: Runtime image builders need the latest Ubuntu LTS and a separate UBI 9 option. Upgrade the Ubuntu paths to 26.04 and add a UBI 9 entry point, sharing release verification and component packaging while keeping package installation separate. The change also handles Ubuntu's new APT/SSL/MySQL packages, HTTPS certificate bootstrap, and timezone files removed from UBI Minimal. Ubuntu component tags remain unchanged; UBI tags add `-ubi9`. ### Details - **Change map:** 431 build/configuration lines, 64 test lines and 84 documentation lines. The build changes cover shared release packaging with two entry points, distro-specific runtime dependencies, and updated default image inputs across the three Ubuntu build paths. No kernel code or generated results change. - **Affected:** Runtime Docker builds for amd64 and arm64, Java 8 and 17, FE/BE/MS, all-in-one 4.1 and doris-compose. Doris compiler settings and release archive contents are unchanged. - **Developer and release impact:** Ubuntu remains the default. UBI uses `docker-build-ubi9.sh`, separate base tags and an isolated output directory. The retained Jammy installer supports explicit rollback inputs. Existing published base-7.0 tags are not repointed. - **License and third-party:** UBI uses its public BaseOS/AppStream repositories. Image digests are pinned; JDK feature/patch versions and Operator/Go pins are unchanged. No new application dependencies or license files are required. - **Rollback:** Revert the change or use the previous image digests. Explicit Jammy image overrides remain supported. - **Behavior change:** New Ubuntu builds use 26.04 and MySQL 8.4. UBI uses MySQL 8.0 and requires x86-64-v2 on amd64. Build metadata defaults move into distro-specific subdirectories. ### Testing - Ten offline build-script tests passed locally, including distro selection, output isolation, Java 8/no-AVX2 selection, pinned input forwarding and checksum failures. - Four ARM64 runtime bases (Ubuntu/UBI, Java 8/17) built and passed JVM/compiler, MySQL TLS-option, Operator-tool and timezone checks. - ARM64 FE/BE/MS images built for each distribution. Isolated Doris 4.1.5 clusters passed insert/select, Stream Load and timezone conversion; BE/MS native dependencies resolved and version commands succeeded. - The Jammy installer and the combined additional all-in-one/compose package set passed local installation checks. ### Notes for Reviewers Docker Hub pulls failed with authentication and network errors. Local builds used cached Ubuntu 26.04 and same-version Temurin JDKs, plus unchanged Go 1.27.4 Operator binaries through a named build context; new published multi-platform digests were checked through the public Registry API. Ubuntu package installation used a signed HTTPS mirror. Complete default-input image builds, amd64 execution, full MS/FDB operation, Kerberos and end-to-end TLS remain unverified. These tests are manually invoked; no CI workflow currently runs the runtime script tests. ### Release note Runtime images default to Ubuntu 26.04 LTS. A separate UBI 9 build produces FE, BE and MS images with an `-ubi9` tag suffix. UBI 9 requires x86-64-v2 hardware on amd64; validate older hosts before changing images. ### Check List (For Author) - Behavior changed: Yes (see Details) - Does this need documentation: No (build usage and compatibility are documented in docker/runtime/README.md) - Pre-submission status: Partially verified: default-input registry builds, amd64 and older hosts, full MS/FDB, Kerberos and end-to-end TLS are not verified. ### AI Disclosure - Tool: Codex (GPT-6) - Generated: Code, tests, documentation and this description. - Human review: not stated - Prompts: Research the Ubuntu LTS upgrade and an additional UBI 9 runtime family, then implement both on a new branch in the current checkout and validate locally.
Contributor
Author
|
skip buildall |
hello-stephen
approved these changes
Nov 20, 2026
This was referenced Nov 26, 2026
yiguolei
pushed a commit
that referenced
this pull request
Dec 3, 2026
…#71324) ### Background Doris runtime builds copy either the Eclipse Temurin JDK 17 or JDK 8 into an Ubuntu or UBI 9 base. Doris Compose uses the Temurin JDK 17 directly, and the all-in-one image uses the Temurin JRE 17. The Dockerfiles pin multi-architecture image digests. ### What problem does this PR solve? Issue Number: #69975, #70229 Related PR: #70662 (runtime packaging), #70770 (Ubuntu and UBI bases), docker-library/official-images#22886 (upstream image update) PR Type: Release/Dependency Problem Summary: The runtime pins predate the November 2026 Temurin security update. Docker Hub now has the new images for Linux amd64 and arm64, so both architectures can use the same patched Java release through an immutable image digest. ### Details - **Versions:** Update Eclipse Temurin JDK and JRE 17 from 17.0.21+9 to 17.0.21.1+2 and JDK 8 from 8u512-b09 to 8u514-b01. Pin the published Docker Hub image indexes for Resolute, UBI 9 Minimal, and the documented Jammy override. - **Upstream changes:** Temurin 17.0.21.1+2 fixes CVE-2026-114938. Temurin 8u514-b01 is the corresponding maintained Java 8 update. Both use the existing Temurin distribution and licensing. [Adoptium release announcement](https://adoptium.net/news/2026/11/eclipse-temurin-8u514-110331-170211-210131-25051-27011-available) - **Compatibility:** The pins select patch releases for the Java 8 and Java 17 build paths on both supported architectures. The dependency applies at image build time. - **Rollback:** Revert the image pins and rebuild the corresponding runtime images from the same release artifacts. ### Testing - `python3 docker/runtime/tests/test_docker_build.py -v` passed all 10 tests. - `docker buildx imagetools inspect` confirmed all six unique pinned digests resolve to indexes containing Linux amd64 and arm64. - Built Ubuntu and UBI 9 bases with each JDK and the Doris Compose and all-in-one `runtime-base` stages on both architectures. `java -version` returned the expected Temurin build in all 12 images. - Checked Brotli in the Java 17 bases on both architectures. Ubuntu reported `1.2.0-3ubuntu0.1`, and UBI 9 reported `1.0.9-10.el9_8.1`. ### Notes for Reviewers The Docker checks cover the base images and runtime stages. FE, BE, and MS release-image scans and cluster startup remain part of release verification. ### Release note New Doris runtime images use Eclipse Temurin 17.0.21.1+2 or 8u514-b01 according to their Java major version. ### Check List (For Author) - Behavior changed: No - Does this need documentation: No - Pre-submission status: Ready ### AI Disclosure - Tool: OpenAI Codex (GPT-6) - Generated: Image pin updates, verification commands, and this description. - Human review: not stated
morningman
pushed a commit
to Al-assad/doris
that referenced
this pull request
Dec 4, 2026
### Background The standalone runtime build uses verified Doris release archives for FE, BE, and Meta Service on Ubuntu and UBI 9. The entrypoints install projected configuration before they start Doris. ### What problem does this PR solve? Issue Number: None Related PR: apache#70821 (non-root runtime update), apache#70770 (shared runtime builder), apache#39093 (disaggregated entrypoint) PR Type: Bugfix Problem Summary: The shared builder forwards invalid runtime IDs before downloading the archive or starting the base build. Its previous default mirror returned HTTP 403 when requesting the 4.1.5 checksums. A projected FE config also discards the FQDN setting that disaggregated startup applies before installing the file. Validate the IDs early, use the Apache download mirror, and apply cloud settings to the installed config. ### Details - **Change map:** 200 production, 81 test, and 24 documentation lines changed. No generated files. Build changes validate IDs and select the download mirror. Entrypoint changes install the projected config before applying startup settings. - **Frequency:** Reproduced when building with UID 0 or starting disaggregated FE with a projected fe.conf that omits enable_fqdn_mode. The legacy mirror returned 403 in the verification environment. - **Root cause:** The builder forwards IDs without checking them, and the FE entrypoint applies FQDN settings to the image config before replacing it with the projected config. - **Why existing tests missed it:** Build tests checked valid identity forwarding and mock checksums. The entrypoint test exercised the copy helper outside the disaggregated FE startup sequence. Kernel regression tests start packaged services and do not exercise these runtime build scripts. - **Fix:** Validate decimal IDs before fetching artifacts and before creating Docker users. Point the builder at the current Apache download mirror. Install writable primary configs before applying cloud settings, preserve explicit FQDN mode, and replace generated cloud assignments on restart. - **Other paths and branches:** Both distro launchers use the shared builder. Integrated FE and BE share the projected file handling, and disaggregated BE reapplies its cloud mode. Meta Service retains its existing FDB handling. The shared builder is outside branch-4.0 and branch-4.1 at the inspected refs. Their FE entrypoints retain the old ordering. This change targets master. - **Behavior change:** Invalid build-time IDs fail earlier, and disaggregated FE defaults to FQDN mode when its effective config omits the setting. ### Testing - Confirmed red and green results for invalid IDs, the download URL, and disaggregated FE with a read-only projected config. - Passed the runtime build unit tests, targeted ShellCheck, and Bash syntax checks. - Built 24 Docker fixture images for Ubuntu and UBI 9 on amd64 and arm64. Checked default and custom IDs for FE, BE, and MS, then ran the non-root configuration tests on both distributions and architectures. - Retrieved the official 4.1.5 checksums for the comparison inputs and verified the current operator tool source pin. ### Release note Validate non-root runtime IDs before image builds, use the current Apache release download mirror, and preserve the FQDN default and cloud configuration across projected-config startup and restart. ### Check List (For Author) - Behavior changed: Yes (see Details). - Does this need documentation: Yes. The runtime README documents the IDs, startup behavior, and matching standalone Operator CLI. - Pre-submission status: Partially verified: full Doris binary image builds and Kubernetes upgrade tests are tracked in the release verification stage. ### AI Disclosure - Tool: Codex (GPT-6). - Generated: Implementation, tests, and draft. - Human review: Pending maintainer review.
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
The runtime image builder packages existing Doris releases into FE, BE and MS images with a selected JDK and Operator tools. Component images share one base, while all-in-one and doris-compose use their own Temurin bases. These paths currently use Ubuntu 22.04.
What problem does this PR solve?
Issue Number: None
Related PR: None
PR Type: Build/CI/Chore
Problem Summary:
Runtime image builders need the latest Ubuntu LTS and a separate UBI 9 option. Upgrade the Ubuntu paths to 26.04 and add a UBI 9 entry point, sharing release verification and component packaging while keeping package installation separate. The change also handles Ubuntu's new APT/SSL/MySQL packages, HTTPS certificate bootstrap, and timezone files removed from UBI Minimal. Ubuntu component tags remain unchanged; UBI tags add
-ubi9.Details
docker-build-ubi9.sh, separate base tags and an isolated output directory. The retained Jammy installer supports explicit rollback inputs. Existing published base-7.0 tags are not repointed.Testing
Notes for Reviewers
Docker Hub pulls failed with authentication and network errors. Local builds used cached Ubuntu 26.04 and same-version Temurin JDKs, plus unchanged Go 1.27.4 Operator binaries through a named build context; new published multi-platform digests were checked through the public Registry API. Ubuntu package installation used a signed HTTPS mirror. Complete default-input and all-in-one/compose image builds, amd64 execution, full MS/FDB operation, Kerberos and end-to-end TLS remain unverified. These tests are manually invoked; no CI workflow currently runs the runtime script tests.
Release note
Runtime images default to Ubuntu 26.04 LTS. A separate UBI 9 build produces FE, BE and MS images with an
-ubi9tag suffix. UBI 9 requires x86-64-v2 hardware on amd64; validate older hosts before changing images.Check List (For Author)
AI Disclosure