Repository navigation
shared/envoy: Only install curl for the examples that use it - #1716
Merged
Merged
Conversation
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>
There was a problem hiding this comment.
🟢 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-shelland curl-enabledenvoy-curltargets. - Extract shared readiness-check files into an
envoy-healthstage. - 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
marked this pull request as ready for review
November 30, 2026 14:00
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.
The Envoy image with a shell installed
curlwithapt-getwhen 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
curlin the container:ext_authzstarts Envoy with a script, anddynamic-config-fsedits a file withsed.shared/envoy/Dockerfilenow has:envoy-shell, which is the image with its shell and nothing installed.envoy-ext_authzandenvoy-dynamic-fsare built on it.envoy-curl, which addscurlas before.envoy-fault-injection,envoy-jaeger-nativeandenvoy-load-balancingare built on it, andfront-proxyandsingle-page-app, which asked forenvoy-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
skywalkingwith its ownapt-get, needing the mirrors at build.Locally
ext_authzanddynamic-config-fspass and their builds do not runapt-get;front-proxy,locality-load-balancingandbrotlipass as before.