Everything I usually need to work on the command line, stuffed into a Docker container.
tbd.
tbd.
The easiest way to run it, is using the public image that is hosted on Dockerhub:
docker pull fanatique/cli-env:latest
The image itself does not contain anything secret, therefore everything is passed into the container at runtime.
In my case this is:
- the
~/.docker
directory (for using docker machine) - the
~/.ssh
directory - a directory with my projects
And I found it to be useful to also mount the the Docker socket, so that I can build and run images and containers within my environment.
docker run -v ~/.ssh:/root/.ssh -v ~/.docker:/root/.docker:ro -v ~/projects:/projects -v /var/run/docker.sock:/var/run/docker.sock -it fanatique/cli-env:latest
Coming from MacOS, it's a bit cumbersome to type your ssh keyphrase over and over. So the easiest way to solve that once you've started the container is:
eval "$(ssh-agent -s)"
ssh-add
- Inject / generate git global config values