toolbx-images / images

Community maintained container images to use with toolbx and distrobox
https://containertoolbx.org/
Apache License 2.0
342 stars 30 forks source link

Question: best practices to share these images among toolbx and deploying in k8 #92

Closed ebramirez closed 1 year ago

ebramirez commented 1 year ago

With toolbox this images are expected to mimic the user they are launched with, but that's not an option in containerized environments.

Is there a way to be able to share a custom image derived from on of these images so it can be used both with toolbx and in a K8 cluster.

travier commented 1 year ago

Those images are meant to be used as interactive environments. What's your use case for running those in a Kubernetes cluster?

ebramirez commented 1 year ago

Red Hat OpenShift Dev Spaces is an online IDE that you can configure to your needs, much like Gitpod or github.dev. In our case, we create a custom image with our internal tooling so we can use them while developing in this cloud environment that runs on top of OCP.

While developing this custom image we thought that we could leverage these images to use our tools both locally with toolbx and online with DevSpaces.

Hope this makes sense.

travier commented 1 year ago

I don't know what the constraints are for the images used in Dev Spaces. Toolbox images are mostly base images with more packages installed. It's toolbox and distrobox that do the user and environment setup. The images themselves should work everywhere.

ebramirez commented 1 year ago

The custom image works ok right now in Dev Spaces, the only issue is that as this images expect the user to be defined by toolbox and distrobox, they do not have a user of their own. That makes configuring the tools quite cumbersome as configuring as root is far from ideal.

TLDR; The images work, my question more about if there is a common way to use these images both in user and userless environment.

travier commented 1 year ago

You can probably make a Containerfile to create an image that takes those as a base in FROM and setup the users you need there.

travier commented 1 year ago

Closing as there are not actions to take here.