Skip to content

shared/envoy: Only install curl for the examples that use it - #1716

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:shell-no-curl
Nov 30, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:shell-no-curl

Conversation

@phlax

@phlax phlax commented Nov 30, 2026

Copy link
Copy Markdown
Member

The Envoy image with a shell installed curl with apt-get when it was built, so every example that used it needed the package mirrors to be there. In the last stress runs they were not, for about half an hour, and the six examples that install something at build failed while the other 32 passed.

Two of those do not use curl in the container: ext_authz starts Envoy with a script, and dynamic-config-fs edits a file with sed.

shared/envoy/Dockerfile now has:

  • envoy-shell, which is the image with its shell and nothing installed. envoy-ext_authz and envoy-dynamic-fs are built on it.
  • envoy-curl, which adds curl as before. envoy-fault-injection, envoy-jaeger-native and envoy-load-balancing are built on it, and front-proxy and single-page-app, which asked for envoy-shell, ask for it.
  • envoy-health, a stage with the files for the readiness healthcheck, so that they are only written out once for the two.

That leaves four examples that are tested, and skywalking with its own apt-get, needing the mirrors at build.

Locally ext_authz and dynamic-config-fs pass and their builds do not run apt-get; front-proxy, locality-load-balancing and brotli pass as before.

The image with a shell installed `curl` when it was built, so every
example that used it needed the package mirrors to be there.

`ext_authz` and `dynamic-config-fs` want the shell and not `curl`.
`envoy-shell` is now only the shell, and `envoy-curl` adds `curl` for
the examples that make requests from the container.

Signed-off-by: Ryan Northey <ryan@synca.io>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the split between package-free and curl-enabled Envoy images.

No open issues 🎉

What changed in this PR

This PR reduces package-mirror dependencies for examples using the shared Envoy image by installing curl only where it is needed.

Changes:

  • Split the shared image into package-free envoy-shell and curl-enabled envoy-curl targets.
  • Extract shared readiness-check files into an envoy-health stage.
  • Switch curl-dependent image stages and Compose services to envoy-curl.
File Description
single-page-app/​docker-compose.yml Selects envoy-curl to retain in-container curl support.
shared/​envoy/​Dockerfile Separates shell and curl targets, shares readiness files, and updates dependent stages.
front-proxy/​docker-compose.yaml Selects envoy-curl to retain in-container curl support.

Review effort: Balanced

@phlax
phlax marked this pull request as ready for review November 30, 2026 14:00
@phlax
phlax merged commit ade72f3 into envoyproxy:main Nov 30, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants