certificates
certificates copied to clipboard
Build .deb and .rpm from GoReleaser
- [ ] write build & nfpm config in GoReleaser
- [ ] bundle the systemd service unit; should support systemd 229+
Here's a starting point for the nfpm configuration:
nfpms:
- id: packages
file_name_template: "{{ .ConventionalFileName }}"
vendor: Smallstep Labs, Inc.
homepage: https://github.com/smallstep/certificates
maintainer: Smallstep Labs, Inc. <[email protected]>
description: step-ca is the Smallstep Certificate Authority......
formats:
- rpm
suggests:
- step-cli
bindir: /usr/bin
release: 1
contents:
- src: ./systemd/step-ca.service
dst: /usr/lib/systemd/system/step-ca.service
- dst: /etc/step-ca
type: dir
file_info:
mode: 0700
an rpm package to install step would be great! Even better if you can add it to a repository that i can query for updates to step/step-ca.
@tashian are there plans for smallstep to host their own rpm repository? Otherwise, in order to get step integrated upstream, we would need to include at least a simple spec file in order to get this on copr and eventually into fedoraproject if licensing and everything else would agree.
I have been gaining some basic knowledge about .spec and I think I can write a simple one if needed
There are plans, yes, but we haven't prioritized them. @jdoss, do you have any update on this? @LecrisUT might help.
I have a spec partially written and I will put it up on https://copr.fedorainfracloud.org/coprs/jdoss/smallstep/ as soon as I can. The biggest problem is step-cli has some circular golang deps that make building all of the dependency packages tough. Or at least the last time I was hacking on it.
So the plan is to include the .spec file instead of using nfpm? I do support that just for the fact that we can have the packages pushed to distro packages, though we need to confirm that the licensing is ok for that.
Btw @jdoss it seems that we can make a fedora group like caddy did. If the copr can be linked to the group, that would be helpful for future maintenance.
Heads up, there will be a naming clash with another repo called step which is a physics simulator. Maybe worth renaming the packages smallstep-cli and smallstep-ca?
Heads up, there will be a naming clash with another repo called step which is a physics simulator. Maybe worth renaming the packages smallstep-cli and smallstep-ca?
We're aware, some distributions have been packaging as step-cli
Indeed, but step-cli is rather confusing in that aspect as well