This repo is totally for me and so I fragrantly litter my opinions throughout.
When running the docker container the $HOME
folder is mounted as a volunme.
As a result, ssh hosts and git are configured normally on the host.
$ GIT_NAME="Kai Davenport" GIT_EMAIL="kaiyadavenport@gmail.com" make gitconfig
Build image:
$ cd kaispowertools
$ docker build -t devbox .
Run dev container (replace mount points to customize):
$ docker run -ti --rm \
-v /home/kai/projects:/srv/projects:ro \
-v /home/kai:/root:ro \
-v /usr/bin/docker:/usr/bin/docker \
-v /var/run/docker.sock:/var/run/docker.sock \
-p 80:80 \
devbox
You must run vagrant as root to map the SSL port into the vagrant guest.
To avoid this - run vagrant normally and then (as root from host machine):
$ sudo make sslbridge
This maps 443 -> 4443 (which is port forwarded to the vagrant guest)