Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cloudflared #138

Merged
merged 4 commits into from
Jan 7, 2024
Merged

Add cloudflared #138

merged 4 commits into from
Jan 7, 2024

Conversation

samuelleb11
Copy link
Contributor

Proposed Changes

Add cloudflared to enable the Cloudflare Tunnel functionnality.
Working based on my light testing https://github.com/samuelleb11/addon-uptime-kuma

Related Issues

#121

Comment on lines 51 to 52
RUN curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -o /usr/bin/cloudflared \
&& chmod +x /usr/bin/cloudflared
Copy link
Member

Choose a reason for hiding this comment

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

Hi there @samuelleb11 👋

Two things:

  • We don't have to create an additional Docker layer, just add it to the sequence above
  • The cloudflared ain't versioned. I rather have a version locked (so builds are reproducible, caches work properly, and we can ship updates if needed).

For the latter, please add an entry to the renovate configuration as well. We can pick up the latest information from: https://github.com/cloudflare/cloudflared/releases

Copy link
Member

@frenck frenck left a comment

Choose a reason for hiding this comment

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

Comment above

@frenck frenck marked this pull request as draft January 6, 2024 21:02
@frenck frenck added the new-feature New features or options. label Jan 6, 2024
@frenck frenck marked this pull request as ready for review January 7, 2024 20:17
@frenck
Copy link
Member

frenck commented Jan 7, 2024

I took the liberty to address the comments.

  • Added versioning to the cloudflared used.
  • Enabled Renovate to handle future upgrades.
  • Added logic to make this work across different architectures.

../Frenck

Copy link
Member

@frenck frenck left a comment

Choose a reason for hiding this comment

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

Thanks, @samuelleb11 👍

../Frenck

@frenck frenck merged commit b046181 into hassio-addons:main Jan 7, 2024
11 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 9, 2024
@samuelleb11 samuelleb11 deleted the patch-1 branch March 9, 2024 08:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
new-feature New features or options.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants