Docker Image as working environment?
-
Hi there,
is anyone aware of a best practice or project description of creating a docker image for use as a personal working environment? I work a lot on my servers with command line tools and just had the idea, what if I have it in an Docker Image. So I could have my known environment on any server (with Docker) or in case of disaster it would be easy to redeploy.
Does that make sense, or is it a bad idea?
Best,
Mike -
I think https://github.com/89luca89/distrobox could be what you're looking after. With distrobox it is quite easy to start (even gui) applications that are not installed locally, but instead come out of one or more containers. Distrobox is also commonly used to install and run applications in otherwise immutable operation systems.
One such tool that you could have in your distrobox could be your dotfile manager, so that you have access to your secrets that you would otherwise not bake into a container.
Another tool I used a lot in the past is https://github.com/cdown/sshrc (although the maintainer has changed since I last used it it seems). With that you can select some of your dotfiles and have it copied into a temporary folder when you ssh into a system.
-
check out Kasm - rock solid with lots of environments, and their images can be used 'standalone' (I think)