Dockerfile: Disable pacman download timeout

This commit is contained in:
Daniel Langbein 2021-06-23 16:54:57 +02:00
parent 6617e4ccf0
commit aae05dfc1a
2 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,7 @@ To update all submodules, run
```shell ```shell
# If no local changes were done # If no local changes were done
git submodule update --remote | grep 'Submodule path' $(set -o pipefail; git submodule update --remote | {grep 'Submodule path' || echo 'Everything up to date.' })
# Otherwise # Otherwise
git submodule foreach 'git pull' git submodule foreach 'git pull'

View File

@ -4,12 +4,14 @@
FROM archlinux:base-devel FROM archlinux:base-devel
# 0. DisableDownloadTimeout
# 1. Add de-p1st mirror # 1. Add de-p1st mirror
# 2. Enable parallel downloads # 2. Enable parallel downloads
# TODO: Wait until next baseimage update # TODO: Wait until next baseimage update
# && sed --in-place 's|^#ParallelDownloads\s*=.*$|ParallelDownloads = 4|' /etc/pacman.conf \ # && sed --in-place 's|^#ParallelDownloads\s*=.*$|ParallelDownloads = 4|' /etc/pacman.conf \
# 3. Update mirrors + packages # 3. Update mirrors + packages
RUN printf '\n[de-p1st]\nSigLevel = Optional TrustAll\nServer = https://arch.p1st.de\n' >> /etc/pacman.conf && \ RUN printf '\n[options]\nDisableDownloadTimeout\n' >> /etc/pacman.conf && \
printf '\n[de-p1st]\nSigLevel = Optional TrustAll\nServer = https://arch.p1st.de\n' >> /etc/pacman.conf && \
pacman -Syu --noconfirm pacman -Syu --noconfirm
# 1. Set packager # 1. Set packager