Hi! Sorry if I’ve brought this up before. Was looking at the package definitions in our repo today and did go through Alpine. It’s not following the template set by the Debian packages, it’s one huge package with all possible dependencies.
Since there’s a cost and a risk with adding dependencies and very few Kamailio installs use all modules this doesn’t look good to me.
I personally don’t know the details of Alpine packaging, but can help trying to define a set of packages like in Debian and test them in Alpine.
It would be good for the project overall if we can fix this.
Btw, the same goes for the docker image that is built with scripts in the packaging repository. Being able to minimise the build would be a good thing.
Kamailio greetings! /O
On Tue, 2023-04-18 at 17:16 +0200, Olle E. Johansson wrote:
Hi! Sorry if I’ve brought this up before. Was looking at the package definitions in our repo today and did go through Alpine. It’s not following the template set by the Debian packages,
Correct. It tries to follow (as closely as possible) Makefile.groups Please see https://git.alpinelinux.org/aports/tree/main/kamailio/APKBUILD, lines 45-58)
it’s one huge package with all possible dependencies.
? It is one abuild that builds 44 sub packages: https://pkgs.alpinelinux.org/package/edge/main/x86_64/kamailio
Since there’s a cost and a risk with adding dependencies and very few Kamailio installs use all modules this doesn’t look good to me.
Alpine tries to follow Makefile.groups which honestly doesn't make sense to me either.
I personally don’t know the details of Alpine packaging, but can help trying to define a set of packages like in Debian and test them in Alpine.
See above.
It would be good for the project overall if we can fix this.
Ok. I'm listed as the package manager.
Btw, the same goes for the docker image that is built with scripts in the packaging repository. Being able to minimise the build would be a good thing.
Out of my scope. The docker images people do crazy things. :)
Kamailio greetings! /O
Kamailio is a Hawaiian word for to "talk, converse" - Yeah, let's talk, my friend.
On 18 Apr 2023, at 19:47, Nathan Angelacos nangel@tetrasec.net wrote:
On Tue, 2023-04-18 at 17:16 +0200, Olle E. Johansson wrote:
Hi! Sorry if I’ve brought this up before. Was looking at the package definitions in our repo today and did go through Alpine. It’s not following the template set by the Debian packages,
Correct. It tries to follow (as closely as possible) Makefile.groups Please see https://git.alpinelinux.org/aports/tree/main/kamailio/APKBUILD, lines 45-58)
it’s one huge package with all possible dependencies.
? It is one abuild that builds 44 sub packages: https://pkgs.alpinelinux.org/package/edge/main/x86_64/kamailio
Ahh, I misunderstood. Thank you!
Then I just have to say “Good work” and I’ll be back after I checked it out again.
Since there’s a cost and a risk with adding dependencies and very few Kamailio installs use all modules this doesn’t look good to me.
Alpine tries to follow Makefile.groups which honestly doesn't make sense to me either.
Ok, I’ll have another look and we’ll discuss.
I personally don’t know the details of Alpine packaging, but can help trying to define a set of packages like in Debian and test them in Alpine.
See above.
It would be good for the project overall if we can fix this.
Ok. I'm listed as the package manager.
Good to meet you!
Btw, the same goes for the docker image that is built with scripts in the packaging repository. Being able to minimise the build would be a good thing.
Out of my scope. The docker images people do crazy things. :)
He he.
Kamailio greetings! /O
Kamailio is a Hawaiian word for to "talk, converse" - Yeah, let's talk, my friend.
:-)
/O
Alpine module packaging like Debian is a good approach. But for docker is not easy to install additional packages. Required to write own Dockerfile and then build the image and push to the repo. Then you can use your own image. If you can write Dockerfile and build an image, then you can do it anytime. For other people, it requires some learning.
Moreover, Alpine images are tiny (30Mb in the repo and 70Mb on the local PC), and if we remove half of the modules we do not make it much smaller.
On Tue, Apr 18, 2023 at 6:22 PM Olle E. Johansson oej@edvina.net wrote:
Hi! Sorry if I’ve brought this up before. Was looking at the package definitions in our repo today and did go through Alpine. It’s not following the template set by the Debian packages, it’s one huge package with all possible dependencies.
Since there’s a cost and a risk with adding dependencies and very few Kamailio installs use all modules this doesn’t look good to me.
I personally don’t know the details of Alpine packaging, but can help trying to define a set of packages like in Debian and test them in Alpine.
It would be good for the project overall if we can fix this.
Btw, the same goes for the docker image that is built with scripts in the packaging repository. Being able to minimise the build would be a good thing.
Kamailio greetings! /O _______________________________________________ Kamailio (SER) - Development Mailing List To unsubscribe send an email to sr-dev-leave@lists.kamailio.org