2020-04-17 03:49:44 +00:00
|
|
|
FROM depau/archlinux-daily:aarch64
|
|
|
|
|
|
|
|
# Add common build utils and other needed packages
|
|
|
|
RUN pacman -Syu --noconfirm base base-devel pacman-contrib git cmake \
|
2020-04-18 03:27:17 +00:00
|
|
|
meson ninja sudo go-pie
|
2020-04-17 03:49:44 +00:00
|
|
|
|
|
|
|
# Add builds user
|
|
|
|
RUN useradd -mG wheel builder && \
|
|
|
|
echo '%wheel ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
|
|
|
|
|
|
|
# Colors and candy
|
|
|
|
RUN sed -i 's/^BUILDENV=.*$/BUILDENV=(!distcc color !ccache check !sign)/g' /etc/makepkg.conf && \
|
|
|
|
sed -i 's/^#Color/Color\nILoveCandy/g' /etc/pacman.conf
|
|
|
|
|
|
|
|
USER builder
|
|
|
|
|
|
|
|
# Add pikaur
|
|
|
|
RUN cd /home/builder && \
|
2020-04-18 03:27:17 +00:00
|
|
|
git clone https://aur.archlinux.org/yay.git && \
|
|
|
|
cd yay && \
|
2020-04-17 03:49:44 +00:00
|
|
|
makepkg -sAc && \
|
2020-04-18 03:27:17 +00:00
|
|
|
sudo pacman --noconfirm -U yay*.pkg.* && \
|
2020-04-17 03:49:44 +00:00
|
|
|
cd .. && \
|
2020-04-18 03:27:17 +00:00
|
|
|
rm -Rf yay
|