Skip to content

Add curl#56

Merged
paxx12 merged 3 commits intopaxx12:mainfrom
horzadome:add-curl
Dec 17, 2025
Merged

Add curl#56
paxx12 merged 3 commits intopaxx12:mainfrom
horzadome:add-curl

Conversation

@horzadome
Copy link
Copy Markdown
Contributor

  • add system-utils overlay to "extended" profile for things like curl
  • install curl to /usr/local/bin
  • add curl to dev Dockerfile so container can use curl to download curl

Reasoning:
There is no curl in stock firmware.
We would like to have curl available so that we can e.g. interact with Moonraker API. Specifically, in future PR I'll make adding/removing USB camera to Moonraker on hotplug so that users don't have to manually add it to Moonraker/Fluidd.

Curl is installed from latest binary release of https://github.com/stunnel/static-curl (Travis Lee). This download location is featured at https://curl.se/download.html so it's reliable enough for us to use.

@horzadome
Copy link
Copy Markdown
Contributor Author

Waiting for #55 to restructure


printf ">> Installing latest curl from precompiled tarball\n"

REPO_URL=https://github.com/stunnel/static-curl
Copy link
Copy Markdown
Owner

@paxx12 paxx12 Dec 17, 2025

Choose a reason for hiding this comment

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

Can we similar to other put a static URL, with SHA256SUM?

wget it into tmp/ if not existing, unpack this.

The reason for this is:

  • At some point we tested a specific version to behave as expected. This is guarded by the version and sha256 so we have a clear SBOM and prevent someone changing our depdendency for whatever reasons. In the end us shipping the firmware to user machines should ensure that we do not introduce malicious binaries.
  • Curl is not supposed to change very frequently, in general it is better to have some dependency bot to update the dependency as part of PR instead of pulling from latest. I think we could probably have copolit periodically look at those things.

@paxx12
Copy link
Copy Markdown
Owner

paxx12 commented Dec 17, 2025

@horzadome Can you rebase?

Comment thread overlays/system-utils/scripts/curl_install.sh Outdated
Comment thread overlays/firmware-extended/20-system-utils/scripts/curl_install.sh Outdated
Comment thread overlays/firmware-extended/20-system-utils/scripts/curl_install.sh
@horzadome horzadome marked this pull request as ready for review December 17, 2025 18:23
@paxx12 paxx12 merged commit 9fd81e0 into paxx12:main Dec 17, 2025
1 check 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