Skip to content

shared/echo: Copy the echo server from its image - #1720

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:echo-from-image
Nov 30, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:echo-from-image

Conversation

@phlax

@phlax phlax commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

The echo server was downloaded from a toolshed GitHub release when the image was built, after an apt-get install of curl. Either can fail, and a failed download (curl: (22) The requested URL returned error: 618) failed reverse_tunnel in Envoy's CI.

Copy the binary from envoyproxy/toolshed:echo-v0.1.0, pinned by digest, as is done for the healthcheck. Nothing is installed in the image now: the binary only links to libc, libm and libgcc.

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 remain for the change to copy the echo binary from a digest-pinned toolshed image.

No open issues 🎉

What changed in this PR

Simplifies the shared echo image build by copying the server binary from a digest-pinned toolshed image, removing package installation and GitHub release downloads that could fail in CI.

Changes:

  • Adds envoyproxy/toolshed:echo-v0.1.0, pinned by digest, as the binary source.
  • Replaces download, checksum, and installation steps with a direct copy to /usr/local/bin/example-echo.
File Description
shared/​echo/​Dockerfile Copies the echo binary from a pinned image instead of installing packages and downloading it.

Review effort: Balanced

@phlax
phlax marked this pull request as ready for review November 30, 2026 21:57
The echo server was downloaded from a GitHub release when the image was
built, which needed curl to be installed first. Either can fail, and a
failed download has failed an example in CI.

Copy it from the image that toolshed publishes, as is done for the
healthcheck. The image is pinned by digest, and nothing is installed.

Signed-off-by: Ryan Northey <ryan@synca.io>
@phlax
phlax requested a balanced review from Copilot November 30, 2026 21:58
@phlax
phlax merged commit fa5d316 into envoyproxy:main Nov 30, 2026
9 checks passed

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 were identified for the echo image build simplification.

No open issues 🎉

Review effort: Balanced

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