2019-03-13 21:19:34 +01:00
|
|
|
FROM archlinux/base:latest
|
2017-12-25 21:37:13 +01:00
|
|
|
# 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"
|
2017-12-24 21:10:42 +01:00
|
|
|
# Archlinux Deps
|
|
|
|
RUN pacman -Syu --noconfirm \
|
2017-12-24 12:50:44 +01:00
|
|
|
sudo \
|
|
|
|
binutils \
|
|
|
|
util-linux \
|
|
|
|
fakeroot \
|
|
|
|
file \
|
|
|
|
python \
|
|
|
|
yajl \
|
|
|
|
make \
|
|
|
|
gcc \
|
|
|
|
pkg-config \
|
|
|
|
which \
|
2017-12-24 13:40:50 +01:00
|
|
|
perl \
|
|
|
|
automake \
|
2017-12-24 14:49:34 +01:00
|
|
|
autoconf \
|
2017-12-24 21:10:42 +01:00
|
|
|
gettext \
|
|
|
|
patch \
|
2017-12-25 01:05:46 +01:00
|
|
|
xorg-server-xephyr
|
2017-12-24 12:50:44 +01:00
|
|
|
ENV PATH="${PATH}:/usr/bin/core_perl"
|
2017-12-24 21:10:42 +01:00
|
|
|
# Project deps
|
|
|
|
RUN pacman -S --noconfirm \
|
|
|
|
ansible \
|
|
|
|
jshon \
|
2019-06-15 13:38:38 +02:00
|
|
|
git
|
2017-12-25 01:05:46 +01:00
|
|
|
# Fix tmp dir perms
|
|
|
|
RUN chmod 1777 /tmp
|
2017-12-24 21:10:42 +01:00
|
|
|
# Create test user
|
2017-12-25 02:22:00 +01:00
|
|
|
RUN useradd -m test \
|
2017-12-25 11:57:50 +01:00
|
|
|
&& chown -R test:test /home/test \
|
|
|
|
&& echo -e "test\ntest" | passwd test
|
2017-12-24 12:50:44 +01:00
|
|
|
RUN echo "test ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
2017-12-24 21:10:42 +01:00
|
|
|
# User run
|
2017-12-24 12:50:44 +01:00
|
|
|
USER test
|
|
|
|
WORKDIR /home/test/
|
2017-12-25 21:37:13 +01:00
|
|
|
ENV LANG="fr_FR.UTF-8"
|
2017-12-27 13:16:29 +01:00
|
|
|
RUN mkdir dotfiles
|
|
|
|
COPY . dotfiles/
|
2018-01-04 21:21:00 +01:00
|
|
|
RUN cd dotfiles; ansible-playbook -i docker/archlinux/hosts install.yml | tee ansible.log
|
2017-12-26 00:49:10 +01:00
|
|
|
RUN echo -e "test" | chsh -s '/usr/bin/zsh'
|
|
|
|
ENTRYPOINT /usr/bin/zsh
|