Repository navigation
release/ci: Remove the Docker and signing builds the release build replaced - #49356
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The revised instructions require host Bazel despite the container-based setup and use an OCI archive with docker load, which fails with Docker’s classic image store.
2 open issues
What changed in this PR
Removes the legacy Docker-based release build from main, completing the transition to Bazel-built container images and packages. Release-branch workflows remain unchanged.
Changes:
- Deletes the release Dockerfile, build script, obsolete CI targets, and associated Dependabot entry.
- Moves base-image update discovery to tagged
oci.pullentries inMODULE.bazel. - Updates build documentation and Docker Hub links for the Bazel-based workflow.
| File | Description |
|---|---|
MODULE.bazel |
Adds tag comments for automated base-image updates. |
docs/root/start/building/local_docker_build.rst |
Replaces legacy commands with Bazel build and Docker load instructions. |
distribution/dockerhub/readme.md.tpl |
Points the development image link to the Bazel BUILD file. |
distribution/docker/README.md |
Documents Bazel image targets and base-image updates. |
distribution/docker/Dockerfile-envoy |
Deletes the legacy release Dockerfile. |
distribution/docker/build.sh |
Deletes the legacy buildx image builder. |
distribution/docker/BUILD |
Removes deleted file exports and refreshes comments. |
distribution/changes.bzl |
Updates the comment describing package artifact creation. |
ci/do_ci.sh |
Removes the docker and distribution targets. |
ci/dependency/release_images.sh |
Reads image pins and tags directly from MODULE.bazel. |
.github/dependabot.yml |
Removes monitoring of the deleted release Dockerfile. |
Review effort: Balanced
99e466e to
0bd07c0
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The documented Docker build steps unnecessarily compile Envoy twice because they use different Bazel output bases without telling image-only users to skip the initial binary build.
1 open issue
2 resolved since last review
Review effort: Balanced
0bd07c0 to
7d37ee1
Compare
There was a problem hiding this comment.
🔵 Needs a closer look
The replacement manual oci_load targets lack CI or runtime validation, leaving Docker image loading and execution through ci/run_envoy_docker.sh unverified.
No open issues 🎉
1 resolved since last review
Review effort: Balanced
|
/retest flakey infra |
11d9968 to
a2f34fc
Compare
a2f34fc to
560fae0
Compare
560fae0 to
36c4607
Compare
…placed The release container images and packages are built with Bazel, and the release is signed, in the release build (`release.publish`/ `release.multiarch`, envoyproxy#49259, envoyproxy#49331). The builds that did those before are only run for the release branches, with their own `ci/do_ci.sh`. Removed: - `distribution/docker/Dockerfile-envoy` and `build.sh`, and the `docker` and `distribution` targets of `ci/do_ci.sh` (the Docker OCI and Packages jobs), with the environment `ci/docker-compose.yml` only passed through for them. - the `release.signed` target (the Sign packages job), and the signing of the packages tarballs it did: the `x64-packages`/`arm64-packages` and `signing-inputs` flags of `//distribution`, and the extraction of the `.deb`s and `.changes` from the tarballs. The `.deb`s and `.changes` built in the same invocation are the only signing inputs. - the `verify.trigger` target, which nothing runs, with `@envoy_repo//:trigger`. The `docker` target was also how the images were built locally. A new `release.containers` target builds just the images, as OCI tarballs, without the release tarball, tools or packages, and the local build docs use it. The `release-images` task read the pinned images and their tags from the Dockerfile. It now reads them from the `oci.pull` entries of `MODULE.bazel`, where each has its tag in a `# tag:` comment. Dependabot no longer watches the directory, and the Docker Hub readme links the `dev` tag to the Bazel package. Signed-off-by: Ryan Northey <[email protected]>
36c4607 to
e2c5376
Compare
jwendell
left a comment
There was a problem hiding this comment.
Not in this diff, but .agents/threat_model/THREAT_MODEL.md:59 ("Release artifact publish") still references distribution/docker/build.sh and "Docker push (no cosign, --provenance=false)", which this PR removes. Suggest updating the row, e.g.:
| Release artifact publish | OCI images built with rules_oci (`//distribution/docker:images`) and pushed from CI; release and `.changes` GPG-signed in the release build (`ci/do_ci.sh release.multiarch`, `//distribution:signed`); Sonatype/PyPI upload; PyPI action branch-pinned (`.github/workflows/mobile-release.yml`) | CI runner → public registries | Release artifact integrity |
|
yeah, can follow up - i was going to do a bit of work on some of the other entries there soon |
|
just reread properly, removing ... |
…ages The "Release artifact publish" entry point named `distribution/docker/build.sh` and its `docker buildx` flags, which this removes, as did the mitigation note of T17. Signed-off-by: Ryan Northey <[email protected]>
|
Updated |


Commit Message: release/ci: Remove the Docker and signing builds the release build replaced
Additional Description:
The release container images and packages are built with Bazel, and the release is signed, in the release build (
release.publish/release.multiarch, #49259, #49331). The builds that did those before only run for the release branches withoutrelease-publish, with those branches' ownci/do_ci.sh, so the workflows are unchanged.Removed:
distribution/docker/Dockerfile-envoyanddistribution/docker/build.sh, and thedockeranddistributiontargets ofci/do_ci.sh(the Docker OCI and Packages jobs)ENVOY_OCI_DIR,ENVOY_DOCKER_SAVE_IMAGEandENVOY_TARBALL_DIRfrom the environmentci/docker-compose.ymlpasses through, which only those targets readrelease.signedtarget (the Sign packages job), and the signing of the packages tarballs it did: thex64-packages/arm64-packagesandsigning-inputsflags of//distribution,multi_arch_debs_tarballs, the extraction of the.changesfrom the tarballs (distribution/changes.bzl), and thedistribution/customfiles the job staged.release.multiarchsigns the.debs and.changesbuilt in the same invocation, which are now the only signing inputsverify.triggertarget, which nothing runs, with@envoy_repo//:trigger/distribution/dockerChanged with it:
dockertarget was also how the images were built locally. A newrelease.containerstarget builds just the images, as OCI tarballs in<build dir>/envoy/<arch>/build_images, without the release tarball, tools or packages, and the local Docker build docs use it (withskopeoto load a tarball into Docker).ci/dependency/release_images.shread the pinned images and their tags from the Dockerfile (and since ci/dependency: Update the rules_oci pins with the release images #49350 updatedMODULE.bazelwith it). It now reads them from theoci.pullentries ofMODULE.bazel, each with its tag in a# tag:comment, and resolvesubuntu:22.04from the image that is pulled (mirror.gcr.io/library/ubuntu) rather than Docker Hub.devtag todistribution/docker/BUILD. The release branches' links are unchanged, as they still have the Dockerfile.Open points:
release.containersis untested: nothing in CI runs it. It builds//distribution/docker:images, which the release build also builds.Risk Level: medium (the release signing rules: this PR's Publish signs with them, with the snakeoil key)
Testing: this PR's Publish (
release.multiarch, which builds and signs the release) and Verify.release_images.shrun against a copy ofMODULE.bazelwith a stubbeddocker buildx imagetools inspect: a bump updates both digests, a rerun reports up to date, and no# tag:comments fails. shellcheck is clean.Docs Changes:
docs/root/start/building/local_docker_build.rst,ci/README.mdRelease Notes: n/a