rqlite / rqlite

The lightweight, user-friendly, distributed relational database built on SQLite.
https://rqlite.io
MIT License
15.81k stars 713 forks source link

Debian/Ubuntu packaging of rqlite #1970

Open williamdes opened 2 weeks ago

williamdes commented 2 weeks ago

Is your feature request related to a problem? Please describe.

Ref: #23 Could we have a .deb file to install directly on Debian/Ubuntu and other variants ?

Describe the solution you'd like

I currently built the packaging in my private repo.

Describe alternatives you've considered

Porting this here as a PR.

Are you interested by distributing a .deb format in the releases ? Maybe at some point someone will port it into Debian directly.

otoolep commented 2 weeks ago

I would be interested in doing this. What tooling do you suggest I use to create a .deb?

williamdes commented 2 weeks ago

I would be interested in doing this. What tooling do you suggest I use to create a .deb?

Well, I already did all the work and it works fine on all my servers.

For a Debian official you would start using https://go-team.pages.debian.net/packaging.html But you will end up stuck at the build stage since the dependencies of this project are not all packaged into Debian. Some commands are needed to get the Debian golang toolchain to use the "normal" go get source

All the tooling is standardised for deb files. I highly recommend that you install git-buildpackage.

I will link a PR soon, I did setup my cluster today. Everything works.

For now I made 3 packages:

williamdes commented 2 weeks ago

That said, there is tools like https://goreleaser.com/ and some github actions that should be able to build a basic package. But it will be an empty shell only holding a binary. The nice stuff will be in my PR

otoolep commented 2 weeks ago

Would be interested in a PR, thanks.