dumb-init
bedrocklinux-userland
dumb-init | bedrocklinux-userland | |
---|---|---|
10 | 152 | |
6,700 | 590 | |
0.5% | 0.2% | |
0.0 | 6.8 | |
26 days ago | 12 days ago | |
Python | C | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dumb-init
-
Fargate: catching docker stopping
I think you are on the right track in thinking it’s a signal handling issue. You mentioned using some “bash scripts”, have you tried something like dumb-init?
-
"systemd doesn't follow Unix philosophy "
At the other extreme, there's dumb-init - it implements the special pid-1 behaviors and acts as a wrapper around the one script you want to run. It's ideal for containers or virtual machines that don't need user logins or more than one service.
-
What should readiness & liveness probe actually check for?
Oh, and another thing. Many containers launch their main process from a shell script. When this happens, the shell script receives the SIGTERM event, not the application. Your shell script MUST relay SIGTERM events back to the main process, and it doesn’t happen by default. You can use a shell script wrapper, like dumb-init (https://github.com/yelp/dumb-init), as your entry point if you need to use a shell script on container startup.
-
Distro balls
It's a plus because Gentoo fully supports the choice of Systemd or OpenRC. It also has minit, dumb-init, sysvinit, cinit in tree for the more adventurous. No one was calling the AUR bloat, the parent comment just mentions that Gentoo has an equivalent project, GURU.
- How to make containers handle the SIGTERM signal which makes K8s terminate application gracefully?
- Show HN: EnvKey 2.0 – End-To-End Encrypted Environments (now open source)
-
`COPY –chmod` reduced the size of my container image by 35%
, but I prefer to not have to make this assumption and use an init system instead.
[1]: https://github.com/Yelp/dumb-init
-
Systemd by Example
> It has no init system.
Apologies that I can't link directly to the "--init" flag but docker actually does have an init, it's just (err, was?) compiled into the binary: https://docs.docker.com/engine/reference/commandline/run/#op...
My recollection is that it either adopted, or inspired, https://github.com/Yelp/dumb-init#readme which folks used to put into their Dockerfile as the init system back in the day
Folks (ahem, I'm looking at you, eks-anywhere[0]) who bundle systemd into a docker container are gravely misguided, and the ones which do so for the ability to launch sshd alongside the actual container's main process are truly, truly lost
0: https://github.com/aws/eks-anywhere/issues/838#issuecomment-...
-
Question: How to handle events to safely terminate a Node.js inside Docker container
You can use something like dumb-init which is designed to correctly handle signals
- Docker e Nodejs - Dockerizando sua aplicação com boas praticas
bedrocklinux-userland
- Chimera Linux
-
Waveterm
Back when I used a debian based distribution I made use of https://bedrocklinux.org/ to make use of the AUR. It's not for everyone though.
-
Statically built Nix on Alpine Linux #6751 (2022)
Now this is interesting... apparently it is possible to run Nix AKA "The Nix Package Manager" on Alpine -- despite the fact that Alpine is Busybox and Musl based and NixOS is Coreutils and Glibc based!
Well done Nix engineers and contributors!
(I may switch to Alpine w/Nix Package Manager in the future, depending on how well it works!)
Related:
Bedrock Linux: https://bedrocklinux.org/
- Bedrock Linux
- S6, BusyBox, Binary, Suckless
-
Egg⛩️🐧irl
Sure, just install Bedrock Linux and add the Arch stratum on top
- Which Linux Distro do you recommend?
-
openSUSE MicroOS will be renamed soon. Throw in your suggestions below.
There's a Bedrock Linux distro already...
-
What are some of the more innovative linux distributions?
Bedrock Linux. It is allows you to make a system out of various seemingly-incompatible parts of other distros. I haven't gotten around to trying it myself, but it's really cool.
-
Seamlessly run other Linux distributions inside your terminal
If you want to actually use multiple distributions at once integrated tightly into each other (like using Ubuntu with AUR packages) I highly recommend https://bedrocklinux.org/. It uses some chroot and symbolic link magic to share files across filesystems.
What are some alternatives?
tini - A tiny but valid `init` for containers
distrobox - Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
docker-centos7-systemd-unpriv - Dockerfile for CentOS7 with Systemd in unprivileged mode
neofetch - 🖼️ A command-line system information tool written in bash 3.2+
eks-anywhere - Run Amazon EKS on your own infrastructure 🚀
suicide-linux - @qntm's Suicide Linux, now available on Docker!
systemd - The systemd System and Service Manager
AmogOS - ඞ Among-us themed OS. As seen on Reddit and Youtube.
compiling-containers
goxlr-on-linux - Documentation and scripts to make the GoXLR and GoXLR Mini useful on Linux.
ko - Build and deploy Go applications
void-packages - The Void source packages collection