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

[Question] How to build an image inside kubernix? #365

Open
PanAeon opened this issue May 7, 2020 · 1 comment
Open

[Question] How to build an image inside kubernix? #365

PanAeon opened this issue May 7, 2020 · 1 comment
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@PanAeon
Copy link
Contributor

PanAeon commented May 7, 2020

Hi,
first of all thank you for your excellent work! This is really amazing that now we can bring up a whole kubernetes cluster in a sandbox with a single command!
I've got a newbie question though, how do you actually build an image inside of the kubernix cluster? I've tried to install podman, but I'm not sure how to configure it so it is aware of the crio service used by the kubernix.
Maybe we can add section in the Readme with steps describing how to build images?

@saschagrunert
Copy link
Owner

saschagrunert commented May 7, 2020

Hey, thank you for the nice feedback, I really appreciate it! 🙏

Yeah adding it to the docs might be a good starting point. Generally when building container images inside containers we have to choose the vfs storage driver (configured in /etc/containers/storage.conf or via the CLI flag). The rest is a matter of available capabilities which may be blocked by seccomp or AppArmor profiles. It is also a matter of configured Pod Security Policies (none in Kubernix), so we probably could sum that up.

When I build container images in Kubernetes I usually choose buildah and set the --isolation=chroot (works with podman build too), which removes the necessity to have SYS_ADMIN capability to be able to use the mount(2) syscall.

@saschagrunert saschagrunert added documentation Improvements or additions to documentation question Further information is requested labels May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants