Publish primitive manager #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "add-spec-file"
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?
Motivation
Want to be able to build a binary program and publish to ktc RPM registry.Ideally with systemd unit files.What we really wanted was a way to download the state manager binary from the custom OS installer.
Solution
Publishing using RPM turned out to be a lot more complicated than expected. The RPM system mixes the concerns of a build system with that of a repository. Their spec files are bash scripts mixing declarative and imperative programming constructs. But the issue finally ruling out RPM was the binary file size changing once published and throwing errors when executed.
Instead, an archive is published as a release which can be downloaded via curl. This means the installation of the binary and the service unit file into the correct directories has to occur after the download — e.g. using an installer script or having the binary install itself.