Repository navigation
Conversation
phlax
force-pushed
the
ubuntu-rules-distroless
branch
2 times, most recently
from
November 14, 2026 11:57
d0ba989 to
9639519
Compare
Build `envoy-distroless` and `envoy-contrib-distroless` with rules_oci, from the pinned distroless base and the release binaries, instead of with `docker buildx`. The images match the `envoy-distroless` stage of `Dockerfile-envoy`. `release` builds them for the target platform with the release binaries, and adds the OCI tarballs to the release binary directory. `docker` collects them as `envoy-distroless.<arch>.tar` and `envoy-contrib-distroless.<arch>.tar`, as `build.sh` names them, and skips building them with buildx (`DOCKER_SKIP_DISTROLESS`). Local multi-platform and load builds are unchanged. Signed-off-by: Ryan Northey <[email protected]>
phlax
force-pushed
the
ubuntu-rules-distroless
branch
5 times, most recently
from
November 14, 2026 12:34
6f213cc to
4659d37
Compare
…les_distroless Build the `envoy`, `envoy-debug`, `envoy-contrib`, `envoy-contrib-debug` and `envoy-tools` images with rules_oci, on the pinned ubuntu base, with `ca-certificates`, `openssl` and `tzdata` from an Ubuntu snapshot (rules_distroless), as the `envoy` stages of `Dockerfile-envoy` do. The `RUN` steps of the `envoy-base` stage are replaced with layers: the base users and groups with the `envoy` system user and group, its home directory, the package data, the certificate bundle (`cacerts`), and the timezone settings that the package maintainer scripts would create. `apt-get upgrade` is dropped: the base image digest and the snapshot pin what is installed. `release` builds all of the container images, and writes them to `build_images`, as `docker` names them. The binary job uploads them as `oci.<arch>`, and the Docker OCI job is removed. Signed-off-by: Ryan Northey <[email protected]>
…_edit) Signed-off-by: Ryan Northey <[email protected]>
phlax
force-pushed
the
ubuntu-rules-distroless
branch
from
November 14, 2026 12:44
4659d37 to
ab9e6ff
Compare
Member
Author
|
Combined with the distroless images into #49259 (all of the release images with rules_oci, collected by the existing Docker OCI job, no workflow changes). |
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.
Commit Message: distribution: Build the ubuntu container images with rules_oci and rules_distroless
Additional Description:
Stacked on #49259 (the first commit here); this PR is the second commit. The third commit (
TEST:) overridesenvoy_toolshedwith envoyproxy/toolshed#5597 (oci_base_edit, cherry-picked onto the v0.5.20 release) to test it, and goes once that is released.Builds the ubuntu-based images (
envoy,envoy-debug,envoy-contrib,envoy-contrib-debug,envoy-tools) with rules_oci, so that all of the release container images are built by bazel, and the Docker OCI job (docker-in-docker buildx, after downloading the binaries) goes away.ubuntu:22.04at the digest pinned inDockerfile-envoy(oci.pull).ca-certificates,opensslandtzdatafrom a pinnedsnapshot.ubuntu.comtimestamp (rules_distrolessapt). These are the packages the apt layer adds today; their dependencies are in the base.RUNsteps of theenvoy-basestage become layers:oci_base_edit(toolshed): reads the base image's passwd/group/shadow/gshadow and dpkg status, and addsenvoyasadduser --group --system envoydoes (uid/gid 101 on this base),/home/envoy, and the three packages to the dpkg status;cacerts), and/etc/timezone//etc/localtime(Etc/UTC), which the package maintainer scripts would otherwise create./etc/envoy/{envoy.yaml,VERSION.txt},/docker-entrypoint.sh,su-exec,envoy(+.dwpfor debug), the tools for-tools, entrypoint/cmd,DEBIAN_FRONTEND, port 10000.CI:
releasebuilds all images (//distribution/docker:images) intobuild_images/envoy*.<amd64|arm64>.tar; the binary job uploads them asoci.<arch>, the artifact the verify and container publishing jobs already use; the Docker OCI job is removed. Localdockerbuilds still use buildx.Differences from the buildx images:
apt-get upgrade: base packages are those of the pinned base until its digest (and the snapshot) is bumped, rather than whatever was current at build time./etc/ssl/certs, not the per-certificate hash links.Risk Level: medium (release container images)
Testing: CI (verify jobs use the built images)
Docs Changes: n/a
Release Notes: n/a