initial commit of dockertools repository

This commit is contained in:
Andrew Davidson 2019-05-22 18:25:05 -04:00
commit 8bdcc25022
Signed by: amd
GPG key ID: 17AF8F2A49CF25C6
2 changed files with 30 additions and 0 deletions

19
Dockerfile Normal file
View file

@ -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"]

11
README.md Normal file
View file

@ -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