Live data from Hacker News

Alpine Linux is reducing dependencies on Busybox

gitlab.alpinelinux.org

61–70 of 87 posts

Re: Alpine Linux is reducing dependencies on Busybox

#61

I really like alpine linux. I used it as my WSL2 env for years. I run Void Linux on actual hardware these days (better to use photon for games than WSL2 for work), but would probably switch back to alpine if it had more packages and rolling release, as it had the best package manager I had ever used.

Better than void? I'm convinced void has the best package manager I've ever used.

Re: Alpine Linux is reducing dependencies on Busybox

#62
post #7

That's not what I read in the link: > More generally, and this is more a matter of opinion and totally debatable, I would like functionality to be progressively stripped from busybox-initscripts, which is a package that gathers a bunch of miscellaneous policy scripts that are only related by the fact that their mechanism is provided by busybox. I don't think this package makes sense from a semantics point of view; it…

The underlying goal (in the long follow up message) seems to be the desire to move from mdev (in busybox) to mdevd (not in busybox) so the title is to some degree justified. Although the situation is a complicated and subtle one, as per usual with Linux distributions.

Re: Alpine Linux is reducing dependencies on Busybox

#63

Editorialized title is extremely misleading. At most, this MR is reducing dependencies on busybox's init scripts. A far more accurate title would be the title of the MR itself: "main/mdevd: make it a fully supported alternative to mdev". The MR is mainly about mdev.

As Ariadne was talking yesterday about mid-long term removing busybox, there was a big hype around it and maybe we/some others made more from this MR than it was.

https://twitter.com/ariadneconill/status/1554846536521207808

Re: Alpine Linux is reducing dependencies on Busybox

#64

Earlier quoted context omitted.

To make sure that once services are up and running, they keep running and are restarted automatically? To have good, centralized logging? To manage in-container services the same way you do on the container host? There's plenty of good reasons for one to want to do so.

None of those things are actually needed in a container. If you're actually doing those things inside one, you're literally doing it wrong Yes you might have some special cases where some of this is needed but I'd use anything besides systemd

a) Starting all your services and shims and mocks inside a CI/CD tests container is not "doing it wrong"; in fact, it's the only correct way to do it.

b) systemd is the only thing that can start services cleanly and correctly. Every other solution is in various states of brokenness.

Re: Alpine Linux is reducing dependencies on Busybox

#65
post #60

Earlier quoted context omitted.

None of those things are actually needed in a container. If you're actually doing those things inside one, you're literally doing it wrong Yes you might have some special cases where some of this is needed but I'd use anything besides systemd

All of the cheap Linux container hosting services are doing it wrong, I guess.

Many of them offer k8s out of the box.

I still think that orchestration should live outside containers, whether within one box or several. BTW systemd has some vestiges of container orchestration built in.

OTOH there are other approaches; say, LXD directly assumes an ecosystem of processes within a container, more akin to a VM than to a single chroot-ed / jailed service process.

Re: Alpine Linux is reducing dependencies on Busybox

#66
post #42

Earlier quoted context omitted.

Does that seem like a strong argument to you? Of course it's possible to make useless tests. It's possible to be injured by an airbag. It's possible to overdose on a drug that usually saves lives. That doesn't mean any of these things aren't generally beneficial, or that they should be foregone. As I said recently on Twitter, I've measured the likely cost of production bugs that were fixed early by static analysis, b…

I think it's a big assumption that the ROI of tests in general is in the same ballpark as the ROI of static analysis. In my experience, many tests written in commercial software engineering have ~zero or even negative ROI. This mostly applies to micro-level testing like unit tests; macro-level testing like integration tests can be fantastically valuable and I've even come to believe that they're the only type of test…

Well, we were talking about regression tests, which are much closer to integration tests than unit tests, so I'm not sure we actually disagree. Writing regression tests is still valuable, and still too rare.

Re: Alpine Linux is reducing dependencies on Busybox

#67

I really like alpine linux. I used it as my WSL2 env for years. I run Void Linux on actual hardware these days (better to use photon for games than WSL2 for work), but would probably switch back to alpine if it had more packages and rolling release, as it had the best package manager I had ever used.

Is Alpine edge not a rolling release? I'm using it on my laptop right now.

Re: Alpine Linux is reducing dependencies on Busybox

#68
post #5

> The TSC has discussed this issue at today's meeting and has concluded that there is a general need to begin decoupling hardcoded preferences for BusyBox from the distribution. Neat. I wonder if the general decoupling will make it eventually easy to drop in ex. toybox or one of the rust/golang coreutils implementations. Or, for that matter, to drop in GNU coreutils, since the current way to add those to Alpine strik…

As far as I understand, this initiative is primarily about reducing hardcoded dependencies on Busybox. As such, this is indeed what would enable alternative implementations to exist cleanly alongside whatever is the default. Because yeah, trying to change Alpine's init system, mdev, or other coreutils is indeed not easy/feasible at the moment.

You can already install coreutils and udev over busybox, without busybox being removed.

Re: Alpine Linux is reducing dependencies on Busybox

#69

I really like alpine linux. I used it as my WSL2 env for years. I run Void Linux on actual hardware these days (better to use photon for games than WSL2 for work), but would probably switch back to alpine if it had more packages and rolling release, as it had the best package manager I had ever used.

I've only had to use `apk` for a Dockerfile layer when we were really trying to minimize the footprint of an image. From what I could tell, there was no discernible difference from `yum` or `apt`. What are the features that make it stand out to you?

The packaging format and system is very different to yum and deb, despite the similarities in cli interface for local maintenance. It's quite similar to PKGBUILD in Arch, except with more streamlined tooling.

Re: Alpine Linux is reducing dependencies on Busybox

#70
post #52
post #45

Earlier quoted context omitted.

Why would Alpine need systemd? Why would you need it in a container?

I'm not a fan of using Alpine in containers. Use it baremetal for your servers and desktops, then use Debian/CentOS containers on top when something is missing.

Sadly when playing the CVE game, Debian containers are no contest to alpine. For CentOS in a container I can see absolutely no reasons except if the SW is only tested against it.
Post reply on HN