bootstrap: Add testing Dockerfile to bootstrap
Added Dockerfile which sets up a simple archlinux test environment for the dotfiles/bootstrap process/playing around. Will simply build a simple archlinux machine with a single user.
This commit is contained in:
parent
1a05ea8445
commit
df724c20ba
1 changed files with 22 additions and 0 deletions
22
bootstrap/Dockerfile
Normal file
22
bootstrap/Dockerfile
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
FROM archlinux:latest
|
||||||
|
|
||||||
|
# First build then run this dockerfile with:
|
||||||
|
# `podman build -t bootstrap .`
|
||||||
|
# `podman run -it -v /path/to/my/dotfiles:/path/to/my/dotfiles:ro bootstrap`
|
||||||
|
|
||||||
|
RUN pacman-key --init
|
||||||
|
RUN pacman -Syu --noconfirm git vi base-devel sudo zsh man man-pages
|
||||||
|
|
||||||
|
RUN useradd -m -G wheel -s /usr/bin/zsh marty
|
||||||
|
RUN echo "%wheel ALL=(ALL:ALL) ALL" >> /etc/sudoers
|
||||||
|
RUN echo "marty:password" | chpasswd
|
||||||
|
|
||||||
|
# RUN su marty
|
||||||
|
# RUN cd /home/marty
|
||||||
|
# RUN git clone "https://git.martyoeh.me/Marty/dotfiles" .dotfiles
|
||||||
|
# link it directly from dotfile development dir to experiment
|
||||||
|
|
||||||
|
USER marty
|
||||||
|
VOLUME /home/marty/.dotfiles
|
||||||
|
WORKDIR /home/marty/.dotfiles
|
||||||
|
CMD ["/usr/bin/bash"]
|
Loading…
Reference in a new issue