mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-22 15:01:59 +01:00
51 lines
1.2 KiB
Docker
51 lines
1.2 KiB
Docker
FROM archlinux/base:latest
|
|
# Locales keyboard
|
|
RUN echo "fr_FR.UTF-8 UTF-8" > /etc/locale.gen \
|
|
&& locale-gen \
|
|
&& echo 'LANG="fr_FR.UTF-8"' > /etc/locale.conf
|
|
ENV LANG="fr_FR.UTF-8"
|
|
# 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 \
|
|
go
|
|
# Fix tmp dir perms
|
|
RUN chmod 1777 /tmp
|
|
# Create test user
|
|
RUN useradd -m test \
|
|
&& chown -R test:test /home/test \
|
|
&& echo -e "test\ntest" | passwd test
|
|
RUN echo "test ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
|
# User run
|
|
USER test
|
|
WORKDIR /home/test/
|
|
ENV LANG="fr_FR.UTF-8"
|
|
RUN curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=packer-git
|
|
RUN makepkg PKGBUILD --install --needed --noconfirm
|
|
RUN mkdir dotfiles
|
|
COPY . dotfiles/
|
|
RUN cd dotfiles; ansible-playbook -i docker/archlinux/hosts install.yml | tee ansible.log
|
|
RUN echo -e "test" | chsh -s '/usr/bin/zsh'
|
|
ENTRYPOINT /usr/bin/zsh
|