From 1e0191eda67540e2817632a14dd2d8147df2470a Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 8 Apr 2019 12:42:11 +1000 Subject: [PATCH] docker/win32: add initial Dockerfile tests --- docker/win32/Dockerfile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 docker/win32/Dockerfile diff --git a/docker/win32/Dockerfile b/docker/win32/Dockerfile new file mode 100644 index 0000000..ef38cae --- /dev/null +++ b/docker/win32/Dockerfile @@ -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 \ No newline at end of file