Publish static landerctl binaries #24
Labels
No Label
Kind/Bug
Kind/Enhancement
Kind/Feature
Project/Lander
Project/Landerctl
idea
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Chewing_Bever/lander#24
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. 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.