docker/win32: add initial Dockerfile tests

This commit is contained in:
Danny Robson 2019-04-08 12:42:11 +10:00
parent cf5f141018
commit 1e0191eda6
1 changed files with 31 additions and 0 deletions

31
docker/win32/Dockerfile Normal file
View File

@ -0,0 +1,31 @@
FROM nerdcruft/base
# Select a mirror
RUN pacman -Sy --noconfirm --noprogressbar pacman-contrib && \
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup \
&& rankmirrors -n 6 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist
# Update base system
RUN pacman -Sy && \
pacman -S archlinux-keyring --noconfirm --noprogressbar --quiet && \
pacman -S pacman --noconfirm --noprogressbar --quiet && \
pacman-db-upgrade && \
pacman -Su --noconfirm --noprogressbar --quiet
RUN echo "[ownstuff-testing]" >> /etc/pacman.conf && \
echo "SigLevel = Optional TrustAll" >> /etc/pacman.conf && \
echo "Server = https://martchus.no-ip.biz/repo/arch/\$repo/os/\$arch" >> /etc/pacman.conf && \
echo "Server = https://ftp.f3l.de/~martchus/\$repo/os/\$arch" >> /etc/pacman.conf && \
echo "[ownstuff]" >> /etc/pacman.conf && \
echo "SigLevel = Optional TrustAll" >> /etc/pacman.conf && \
echo "Server = https://martchus.no-ip.biz/repo/arch/\$repo/os/\$arch" >> /etc/pacman.conf && \
echo "Server = https://ftp.f3l.de/~martchus/\$repo/os/$arch" >> /etc/pacman.conf && \
true
RUN pacman -Syu
RUN pacman -S --noconfirm mingw-w64-gcc
RUN pacman -S --noconfirm mingw-w64-binutils
RUN pacman -S --noconfirm mingw-w64-crt
RUN pacman -S --noconfirm mingw-w64-headers
RUN pacman -S --noconfirm mingw-w64-winpthreads