Skip to content

feat: install cloudflared in devcontainer image#503

Merged
venkatamutyala merged 1 commit into
mainfrom
feat/add-cloudflared
Jul 1, 2026
Merged

feat: install cloudflared in devcontainer image#503
venkatamutyala merged 1 commit into
mainfrom
feat/add-cloudflared

Conversation

@venkatamutyala

Copy link
Copy Markdown
Contributor

Adds the cloudflared binary to the devcontainer image.

What changed

.devcontainer/Dockerfile:

  • New pinned version arg with a Renovate annotation (matches every other tool in this file):
    # renovate: datasource=github-tags depName=cloudflare/cloudflared
    ARG VERSION_CLOUDFLARED=2026.6.1
  • Install step to /usr/local/bin/cloudflared:
    RUN curl -Lo /usr/local/bin/cloudflared https://github.com/cloudflare/cloudflared/releases/download/${VERSION_CLOUDFLARED}/cloudflared-linux-$(dpkg --print-architecture) \
        && chmod +x /usr/local/bin/cloudflared

Arch auto-detection (multi-arch ready)

The URL uses $(dpkg --print-architecture) instead of a hardcoded amd64. dpkg --print-architecture returns amd64 / arm64, which matches cloudflared's release asset names (cloudflared-linux-amd64, cloudflared-linux-arm64) exactly — so this keeps working unchanged if the image becomes a multi-arch build. This mirrors the existing dpkg --print-architecture usage already in this Dockerfile (the 1Password install). Both the amd64 and arm64 asset URLs were verified to resolve (HTTP 200).

Note on pinning vs latest

The original request used the releases/latest/download/... URL. I pinned to the current release (2026.6.1) instead so builds are reproducible and Renovate keeps it current — consistent with how every other binary in this Dockerfile is managed. Happy to switch to latest if you'd prefer.

🤖 Generated with Claude Code

@venkatamutyala venkatamutyala merged commit 0329d3d into main Jul 1, 2026
2 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.

1 participant