Closed ebramirez closed 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?
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.
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.
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.
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.
Closing as there are not actions to take here.
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.