|
|
@ -65,16 +65,18 @@ ARG VERSION=10.15.6
|
|
|
|
ARG RANKMIRRORS
|
|
|
|
ARG RANKMIRRORS
|
|
|
|
ARG MIRROR_COUNTRY=US
|
|
|
|
ARG MIRROR_COUNTRY=US
|
|
|
|
ARG MIRROR_COUNT=10
|
|
|
|
ARG MIRROR_COUNT=10
|
|
|
|
RUN if [[ "${RANKMIRRORS}" ]]; then { pacman -Sy wget --noconfirm || pacman -Syu wget --noconfirm ; } \
|
|
|
|
RUN if [[ "${RANKMIRRORS}" ]]; then \
|
|
|
|
; wget -O ./rankmirrors "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/rankmirrors" \
|
|
|
|
{ pacman -Sy wget --noconfirm || pacman -Syu wget --noconfirm ; } \
|
|
|
|
; wget -O- "https://www.archlinux.org/mirrorlist/?country=${MIRROR_COUNTRY:-US}&protocol=https&use_mirror_status=on" \
|
|
|
|
; wget -O ./rankmirrors "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/rankmirrors" \
|
|
|
|
| sed -e 's/^#Server/Server/' -e '/^#/d' \
|
|
|
|
; wget -O- "https://www.archlinux.org/mirrorlist/?country=${MIRROR_COUNTRY:-US}&protocol=https&use_mirror_status=on" \
|
|
|
|
| head -n "$((${MIRROR_COUNT:-10}+1))" \
|
|
|
|
| sed -e 's/^#Server/Server/' -e '/^#/d' \
|
|
|
|
| bash ./rankmirrors --verbose --max-time 5 - > /etc/pacman.d/mirrorlist \
|
|
|
|
| head -n "$((${MIRROR_COUNT:-10}+1))" \
|
|
|
|
&& tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirrors.evowise.com/archlinux/$repo/os/$arch' \
|
|
|
|
| bash ./rankmirrors --verbose --max-time 5 - > /etc/pacman.d/mirrorlist \
|
|
|
|
&& tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch' \
|
|
|
|
&& tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirrors.evowise.com/archlinux/$repo/os/$arch' \
|
|
|
|
&& tee -a /etc/pacman.d/mirrorlist <<< 'Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch' \
|
|
|
|
&& tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch' \
|
|
|
|
&& cat /etc/pacman.d/mirrorlist ; fi
|
|
|
|
&& tee -a /etc/pacman.d/mirrorlist <<< 'Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch' \
|
|
|
|
|
|
|
|
&& cat /etc/pacman.d/mirrorlist \
|
|
|
|
|
|
|
|
; fi
|
|
|
|
|
|
|
|
|
|
|
|
# This fails on hub.docker.com, useful for debugging in cloud
|
|
|
|
# This fails on hub.docker.com, useful for debugging in cloud
|
|
|
|
# RUN [[ $(egrep -c '(svm|vmx)' /proc/cpuinfo) -gt 0 ]] || { echo KVM not possible on this host && exit 1; }
|
|
|
|
# RUN [[ $(egrep -c '(svm|vmx)' /proc/cpuinfo) -gt 0 ]] || { echo KVM not possible on this host && exit 1; }
|
|
|
@ -82,9 +84,7 @@ RUN if [[ "${RANKMIRRORS}" ]]; then { pacman -Sy wget --noconfirm || pacman -Syu
|
|
|
|
RUN tee -a /etc/pacman.conf <<< '[community-testing]' \
|
|
|
|
RUN tee -a /etc/pacman.conf <<< '[community-testing]' \
|
|
|
|
&& tee -a /etc/pacman.conf <<< 'Include = /etc/pacman.d/mirrorlist'
|
|
|
|
&& tee -a /etc/pacman.conf <<< 'Include = /etc/pacman.d/mirrorlist'
|
|
|
|
|
|
|
|
|
|
|
|
RUN pacman -Syu --noconfirm \
|
|
|
|
RUN pacman -Syu sudo git vim nano alsa-utils openssh --noconfirm \
|
|
|
|
&& pacman -S sudo git vim nano alsa-utils openssh --noconfirm \
|
|
|
|
|
|
|
|
&& yes | pacman -Scc \
|
|
|
|
|
|
|
|
&& ln -s /bin/vim /bin/vi \
|
|
|
|
&& ln -s /bin/vim /bin/vi \
|
|
|
|
&& useradd arch -p arch \
|
|
|
|
&& useradd arch -p arch \
|
|
|
|
&& tee -a /etc/sudoers <<< 'arch ALL=(ALL) NOPASSWD: ALL' \
|
|
|
|
&& tee -a /etc/sudoers <<< 'arch ALL=(ALL) NOPASSWD: ALL' \
|
|
|
@ -138,7 +138,7 @@ RUN touch enable-ssh.sh \
|
|
|
|
# RUN yes | sudo pacman -Syu qemu libvirt dnsmasq virt-manager bridge-utils edk2-ovmf netctl libvirt-dbus --overwrite --noconfirm
|
|
|
|
# RUN yes | sudo pacman -Syu qemu libvirt dnsmasq virt-manager bridge-utils edk2-ovmf netctl libvirt-dbus --overwrite --noconfirm
|
|
|
|
|
|
|
|
|
|
|
|
RUN yes | sudo pacman -Syu qemu libvirt dnsmasq virt-manager bridge-utils openresolv jack ebtables edk2-ovmf netctl libvirt-dbus --overwrite --noconfirm \
|
|
|
|
RUN yes | sudo pacman -Syu qemu libvirt dnsmasq virt-manager bridge-utils openresolv jack ebtables edk2-ovmf netctl libvirt-dbus --overwrite --noconfirm \
|
|
|
|
; yes | sudo pacman -Scc
|
|
|
|
&& yes | sudo pacman -Scc
|
|
|
|
|
|
|
|
|
|
|
|
# RUN sudo systemctl enable libvirtd.service
|
|
|
|
# RUN sudo systemctl enable libvirtd.service
|
|
|
|
# RUN sudo systemctl enable virtlogd.service
|
|
|
|
# RUN sudo systemctl enable virtlogd.service
|
|
|
|