Publish static landerctl binaries #24
Labels
No labels
Kind/Bug
Kind/Enhancement
Kind/Feature
Project/Lander
Project/Landerctl
idea
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Chewing_Bever/lander#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We already publish static
landerbinaries for releases. I'd like to also extend this tolanderctl, as this could make it easy to e.g. drop this binary on a server to upload files to the server.One concern with this is how we would go about packaging
libmagicstatically, and more specifically themagic.mgcfile, which it typically reads from disk.In order to keep the binary size low, we should build our own version of libcurl that only contains the parts we really need (so just HTTP(S)).
Building a static package isn't too hard using Alpine Linux, but it seems a static libcurl binary does not necessarily work everywhere. When testing the static binary on the HPC (a Red Hat instance), I get the following error:
The mentioned file doesn't exist on that system.
The above problem was easily fixed by allowing the CA certificate file to be configured.