Knight1 / ripe-atlas_dockerized

RIPE NCC atlas software probe within Docker
https://atlas.ripe.net
9 stars 3 forks source link

Alternative approach to systemd inside docker container #1

Open Jamesits opened 4 years ago

Jamesits commented 4 years ago

FYI, there is no need to use systemd to bring up the atlas service. It runs fine (at least in my environment) without any init system. By masking all systemctl calls I can build a ~40MiB (compressed) docker image.

https://github.com/Jamesits/docker-ripe-atlas/blob/2392fe6d9af218239b32916bade739f460c19cd0/Dockerfile#L22

Should've raised a pull request, but I'm not familiar with CentOS and yum...

Knight1 commented 4 years ago

Thanks for the hint! Has this any caveats?

Besides that, afaik is CentOS just starting the minimum required system services. But haven't looked into this. I would like an Alpine Linux approach :) Did you tried that?

Jamesits commented 4 years ago

One caveat is that you need to manually mount a tmpfs to /var/atlasdata otherwise atlas will complain.

Well why do everyone try to use Alpine? Alpine causes problems and is not that small compare to a properly packaged normal distro. Plus someone reported not being able to start atlas program on Alpine (not sure if their build process or Alpine caused the problem).