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

Generate RPM/DEB packages using nFPM #439

Closed
atc0005 opened this issue Dec 13, 2022 · 1 comment · Fixed by #469
Closed

Generate RPM/DEB packages using nFPM #439

atc0005 opened this issue Dec 13, 2022 · 1 comment · Fixed by #469
Assignees
Labels
builds documentation Improvements or additions to documentation enhancement New feature or request packages Related to generated packages for this project (e.g., RPM, DEB)
Milestone

Comments

@atc0005
Copy link
Owner

atc0005 commented Dec 13, 2022

Overview

The initial implementation won't include package signing or overall package niceties, but will hopefully still be useful.

Goals:

  • apply SELinux context observed in RHEL environments
    • via postinstall script as nFPM does not appear to support natively applying SELinux contexts
  • deploy plugin to standard locations
    • /usr/lib64/nagios/plugins/check_cert via RPM
    • /usr/lib/nagios/plugins/check_cert via DEB
  • deploy CLI tools to /usr/local/bin
    • the goal is to help prevent overwriting any existing tooling in system locations

To more easily support generating packages, some current build settings/choices may need to be adjusted:

  • drop version suffixes from files
    • lscert-v0.9.2-0-gbc90f7e-linux-amd64 becomes lscert-linux-amd64
    • lscert-linux-amd64 is deployed to the system as /usr/local/bin/lscert

References

@atc0005 atc0005 added documentation Improvements or additions to documentation enhancement New feature or request builds labels Dec 13, 2022
@atc0005 atc0005 added this to the Future milestone Dec 13, 2022
@atc0005 atc0005 self-assigned this Dec 13, 2022
@atc0005 atc0005 modified the milestones: Future, Next Release Jan 31, 2023
@atc0005 atc0005 pinned this issue Jan 31, 2023
@atc0005
Copy link
Owner Author

atc0005 commented Jan 31, 2023

NOTE: I'll also want to decide how to handle tracking nfpm releases.

The usual practice for most of the repos I maintain is to add a tools.go and go.mod file for Dependabot to track & notify for; it may be easier to track the tool and bundle it in the atc0005/go-ci project instead.

atc0005 added a commit that referenced this issue Feb 1, 2023
Use new 'packages' Makefile recipe to build DEB and RPM packages
using the nFPM tool from the GoReleaser project.

refs GH-439

See also:

- https://nfpm.goreleaser.com/
- https://github.com/goreleaser/nfpm

Thanks to the nFPM project for this awesome tool!
@atc0005 atc0005 unpinned this issue Feb 2, 2023
@atc0005 atc0005 added the packages Related to generated packages for this project (e.g., RPM, DEB) label Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builds documentation Improvements or additions to documentation enhancement New feature or request packages Related to generated packages for this project (e.g., RPM, DEB)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant