devenv has the concepts:
| HOSTOS | LOCATION | DEFAULT |
|---|---|---|
| mac | local | X |
| linux | remote |
To initialize a host machine to use the dev environment:
docker pull kklipsch/devenv:init && eval "$(docker run --name init kklipsch/devenv:init)"
you can override the defaults by:
export HOSTOS=mac
export LOCATION=local
docker pull kklipsch/devenv:init && eval "$(docker run --name init kklipsch/devenv:init)"
At the time of this writing Docker for Mac could not share a socket from the host hypervisor to a container nor could it share usb devices from the host to the containers. This meant that we can't easily support yubikey based ssh keys (ie ssh agent style authorization).
To get around this, the hoaky work around is to start an sshd container, ssh to it forwarding the host agent, capture that socket in that container, and then share that socket via volumes with the dev environment. Sharing sockets between 2 containers appears to work. This hoaky work around can cause problems so be aware.
Make sure the following is installed:
On a personal machine, setup a new Standard User for development.
Content type
Image
Digest
Size
701.9 MB
Last updated
over 6 years ago
docker pull kklipsch/devenv:golang