kanidm / kanidm_ppa_automation

The magic that makes kanidm/kanidm_ppa work
Mozilla Public License 2.0
0 stars 1 forks source link

kanidmd server package #13

Open sciuro opened 2 weeks ago

sciuro commented 2 weeks ago

Previously I could (and did) build the Debian package for the server, kanidmd the old way. I used this a lot to make updating my authentication servers way more easy.

The current method don't include a server package. I tried it myself and building the binary was no problem. Just add --bin kanidmd \ to the building process in /scripts/crossbuild.sh. But building the Debian package this way is a little bit out of my comfort zone. Is it possible to also include a kanidmd debian package? Or at least have the option to build it myself?

Thanks!

jinnatar commented 2 weeks ago

It hasn't been discussed yet, but I'd say it's plausible. Only reason I didn't add it during the previous wave was not having a readily available default config to drop in. Also need to find or create the systemd service spec and tune it for the right directory permissions.

So while packaging the binary is trivial, it's a bit more spelunking to turn it into a level of ease usually expected from distro packaging. There's a reason why a container is the recommended way to run, easier control on the environment.

jinnatar commented 2 weeks ago

Re building yourself, the rust package needs a bit of cargo-deb annotations but then the deb build instructions in the book would also cover the server. I can kick up a dev branch to that point somewhere this weekend if you don't get to it first.

sciuro commented 2 weeks ago

I can help with the default config and some systemd service spec. Would be great!