fanatique / cli-env

Everything I need to work on the command line, stuffed into a Docker container.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fanatique/cli-env

Everything I usually need to work on the command line, stuffed into a Docker container.

What it contains

tbd.

Build it

tbd.

Run it

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

What Else?

SSH Agent

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

Open

  • Inject / generate git global config values

About

Everything I need to work on the command line, stuffed into a Docker container.

License:MIT License


Languages

Language:Dockerfile 100.0%