Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative approach to systemd inside docker container #1

Open
Jamesits opened this issue Apr 23, 2020 · 2 comments
Open

Alternative approach to systemd inside docker container #1

Jamesits opened this issue Apr 23, 2020 · 2 comments

Comments

@Jamesits
Copy link

Jamesits commented Apr 23, 2020

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
Copy link
Owner

Knight1 commented May 15, 2020

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
Copy link
Author

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants