Skip to content

release/ci: Remove the Docker and signing builds the release build replaced - #49356

Merged
phlax merged 2 commits into
envoyproxy:mainfrom
phlax:rm-release-dockerfile
Nov 18, 2026
Merged

phlax merged 2 commits into
envoyproxy:mainfrom
phlax:rm-release-dockerfile

Conversation

@phlax

@phlax phlax commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

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 without release-publish, with those branches' own ci/do_ci.sh, so the workflows are unchanged.

Removed:

  • distribution/docker/Dockerfile-envoy and distribution/docker/build.sh, and the docker and distribution targets of ci/do_ci.sh (the Docker OCI and Packages jobs)
  • ENVOY_OCI_DIR, ENVOY_DOCKER_SAVE_IMAGE and ENVOY_TARBALL_DIR from the environment ci/docker-compose.yml passes through, which only those targets read
  • 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, multi_arch_debs_tarballs, the extraction of the .changes from the tarballs (distribution/changes.bzl), and the distribution/custom files the job staged. release.multiarch signs the .debs and .changes built in the same invocation, which are now the only signing inputs
  • the verify.trigger target, which nothing runs, with @envoy_repo//:trigger
  • the Dependabot entry for /distribution/docker

Changed with it:

  • the docker target was also how the images were built locally. A new release.containers target 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 (with skopeo to load a tarball into Docker).
  • ci/dependency/release_images.sh read the pinned images and their tags from the Dockerfile (and since ci/dependency: Update the rules_oci pins with the release images #49350 updated MODULE.bazel with it). It now reads them from the oci.pull entries of MODULE.bazel, each with its tag in a # tag: comment, and resolves ubuntu:22.04 from the image that is pulled (mirror.gcr.io/library/ubuntu) rather than Docker Hub.
  • the Docker Hub readme links the dev tag to distribution/docker/BUILD. The release branches' links are unchanged, as they still have the Dockerfile.

Open points:

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.sh run against a copy of MODULE.bazel with a stubbed docker 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.md
Release Notes: n/a

@repokitteh-read-only

Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #49356 was opened by phlax.

see: more, trace.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.pull entries in MODULE.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

@phlax
phlax force-pushed the rm-release-dockerfile branch from 99e466e to 0bd07c0 Compare November 17, 2026 16:46
@phlax
phlax requested a balanced review from Copilot November 17, 2026 16:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

@phlax
phlax force-pushed the rm-release-dockerfile branch from 0bd07c0 to 7d37ee1 Compare November 17, 2026 16:58
@phlax
phlax requested a balanced review from Copilot November 17, 2026 16:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@phlax phlax changed the title [WIP] distribution/docker: Remove the release Dockerfile and its build distribution/docker: Remove the release Dockerfile and its build Nov 17, 2026
@phlax
phlax marked this pull request as ready for review November 17, 2026 17:06
@phlax

phlax commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

/retest flakey infra

@phlax phlax changed the title distribution/docker: Remove the release Dockerfile and its build [WIP] distribution/docker: Remove the release Dockerfile and its build Nov 17, 2026
@phlax
phlax marked this pull request as draft November 17, 2026 17:45
@phlax
phlax force-pushed the rm-release-dockerfile branch 3 times, most recently from 11d9968 to a2f34fc Compare November 17, 2026 18:28
@phlax phlax changed the title [WIP] distribution/docker: Remove the release Dockerfile and its build [WIP] release/ci: Remove the Docker and signing builds the release build replaced Nov 17, 2026
@phlax
phlax force-pushed the rm-release-dockerfile branch from a2f34fc to 560fae0 Compare November 17, 2026 18:39
@phlax
phlax marked this pull request as ready for review November 18, 2026 11:03
@phlax phlax changed the title [WIP] release/ci: Remove the Docker and signing builds the release build replaced release/ci: Remove the Docker and signing builds the release build replaced Nov 18, 2026
…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]>
@phlax
phlax force-pushed the rm-release-dockerfile branch from 36c4607 to e2c5376 Compare November 18, 2026 19:18

@jwendell jwendell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 |

@phlax

phlax commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

yeah, can follow up - i was going to do a bit of work on some of the other entries there soon

@phlax
phlax enabled auto-merge (squash) November 18, 2026 19:50
@phlax

phlax commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

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]>
@phlax

phlax commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

Updated .agents/threat_model/THREAT_MODEL.md as suggested: the "Release artifact publish" row now describes the rules_oci images and the release build signing, without distribution/docker/build.sh. The mitigation note of T17 had the same stale docker buildx flags (--sbom=false --provenance=false), so that is reworded too: the images are still pushed with no signature or provenance attestation. (bot assisted)

@phlax
phlax merged commit 1375fe7 into envoyproxy:main Nov 18, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants