From 8bdcc25022f4986ee4feee01b11d989d5457d45c Mon Sep 17 00:00:00 2001 From: Andrew Davidson Date: Wed, 22 May 2019 18:25:05 -0400 Subject: [PATCH] initial commit of dockertools repository --- Dockerfile | 19 +++++++++++++++++++ README.md | 11 +++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9c781f8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM fedora:rawhide + +RUN dnf install -y zsh git vim tmux stow && dnf clean all + +RUN mkdir /tmp/home && useradd amdavidson -s /usr/bin/zsh -m -k /tmp/home + +RUN git clone https://github.com/amdavidson/dotfiles.git /home/amdavidson/.dotfiles && \ + cd /home/amdavidson/.dotfiles && \ + stow -t /home/amdavidson zsh git vim tmux && \ + chown -R amdavidson /home/amdavidson + +USER amdavidson + +WORKDIR /home/amdavidson + +CMD ["/usr/bin/zsh"] + + + diff --git a/README.md b/README.md new file mode 100644 index 0000000..3797e67 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# Docker Tools + +A very simple docker container that installs a few programs and downloads my personal `.dotfiles` to allow me to run a container with a familiar environment on a foreign or temporary system. + +## Running Docker Tools + +To enter the environment run: + + docker run --rm -it amdavidson/dockertools:latest + +If you are looking to edit files from another container it might be useful to add `--volumes-from other_container` to the run command