This is a docker image that defines a development environment (vim, tmux, git, ssh, etc) which you can use in lieu of manually installing these things onto your machine. This means that if you get a new development machine you can theoretically just install Docker and immediately get back to work.
There are two main parts to our approach:
FROM thedxw/workshop)What you will need installed:
Set up:
sudo mkdir /workbench && sudo chown tomdxw:staff /workbench)cd /workbench && git clone https://github.com/dxw/workshop.gitRun it:
/workbench/workshop/tools/run.sh thedxw/workshop (you can use another image instead of thedxw/workshop, such as thedxw/workshop-tomdxw)If everything worked, you should now be sitting inside a zsh session inside tmux inside Ubuntu inside Docker inside a custom Linux distro inside xhyve inside macOS.
To configure your workshop to how you like it, write a new Dockerfile based on the base workshop image:
FROM thedxw/workshop
# Switch WORKDIR/USER temporarily
WORKDIR /
USER root
# do things here
# Switch WORKDIR/USER back
WORKDIR /workbench/src
USER core
Here's an example: https://github.com/dxw/workshop-tomdxw
There are a few approaches:
RUN ln -s /workbench/home/.ssh/id_rsa /home/core/.ssh/id_rsa && ln -s /workbench/home/.ssh/id_rsa.pub /home/core/.ssh/id_rsa.pub-v /Users/me/.ssh/:/home/core/.ssh/ to the docker run commandSet the detachKeys option in .docker/config.json:
{
"detachKeys": "ctrl-q,ctrl-u,ctrl-i,ctrl-t"
}
Content type
Image
Digest
Size
509.6 MB
Last updated
almost 9 years ago
docker pull thedxw/workshop