mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-22 15:01:59 +01:00
41 lines
973 B
Docker
41 lines
973 B
Docker
FROM base/archlinux
|
|
# Archlinux Deps
|
|
RUN pacman -Syu --noconfirm \
|
|
sudo \
|
|
binutils \
|
|
util-linux \
|
|
fakeroot \
|
|
file \
|
|
python \
|
|
yajl \
|
|
make \
|
|
gcc \
|
|
pkg-config \
|
|
which \
|
|
perl \
|
|
automake \
|
|
autoconf \
|
|
gettext \
|
|
patch \
|
|
xorg-server-xephyr
|
|
ENV PATH="${PATH}:/usr/bin/core_perl"
|
|
# Project deps
|
|
RUN pacman -S --noconfirm \
|
|
ansible \
|
|
jshon \
|
|
git
|
|
# Fix tmp dir perms
|
|
RUN chmod 1777 /tmp
|
|
# Create test user
|
|
RUN useradd -m test \
|
|
&& chown -R test:test /home/test
|
|
RUN echo "test ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
|
# User run
|
|
USER test
|
|
WORKDIR /home/test/
|
|
RUN git clone --recursive https://github.com/eoli3n/dotfiles
|
|
RUN cd /tmp; curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=packer-git
|
|
RUN cd /tmp; makepkg PKGBUILD --install --needed --noconfirm
|
|
RUN cd /home/test/dotfiles; ./install.sh desktop
|
|
RUN echo -e "/usr/bin/zsh" | chsh
|