-
Notifications
You must be signed in to change notification settings - Fork 31
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
Make it possible to run init/systemd inside the build container #283
Comments
g'day @aressem! currently, we hardcode the the container command for the exec container, as we need to be able to explicitly control how the agent is started in that container, as there's a bit of a dance involved in booting k8s agents. we don't anticipate changing this very soon, but we might look into it in the future. i'd like to know more about your use case of systemd inside a k8s container, however. what are the problems you're trying to solve? |
My use case is that I would like to start a set of services with systemd (e.g. dockerd) and also test systemd units as part of our builds. To successfully start systemd the Currently the Another approach would be to allow an init container to be inserted after the Any workarounds or ideas that would help us to have this wrapper in place would be helpful. |
We have a workaround for this where we have used Just saw that the new feature with the |
I would like to start the build container with a working systemd inside. This means having /sbin/init as PID 1.
Currently there is no good way to do this as the container command is hardcoded:
agent-stack-k8s/internal/controller/scheduler/scheduler.go
Line 248 in 2bf2584
It would be nice to be able to override this command to be able to start /sbin/init and then the buildkite-agent with its arguments.
We could of course hack this into a container image derived from the official one, but would rather not.
Any help making this work would be highly appreciated.
The text was updated successfully, but these errors were encountered: