Dockerfile: parallel downloads

This commit is contained in:
Daniel Langbein 2022-02-18 18:00:52 +01:00
parent 6277eaa24b
commit f729ada878

View File

@ -7,10 +7,8 @@ FROM archlinux:base-devel
# 0. DisableDownloadTimeout # 0. DisableDownloadTimeout
# 1. Fix [qt-installer-framework](https://aur.archlinux.org/pkgbase/qt-installer-framework/#comment-836177) # 1. Fix [qt-installer-framework](https://aur.archlinux.org/pkgbase/qt-installer-framework/#comment-836177)
# 2. Enable parallel downloads # 2. Enable parallel downloads
# TODO: Wait until next baseimage update
# && sed --in-place 's|^#ParallelDownloads\s*=.*$|ParallelDownloads = 4|' /etc/pacman.conf \
# 3. Add de-p1st mirror # 3. Add de-p1st mirror
# 4. Add home_ungoogled_chromium_Arch (ungoogled-chromium) mirror; see also (4) # 4. Add home_ungoogled_chromium_Arch (ungoogled-chromium) mirror; see also (5)
# 5. Add signing key of home_ungoogled_chromium_Arch mirror # 5. Add signing key of home_ungoogled_chromium_Arch mirror
# 6. Enable multilib repository; see also (8) # 6. Enable multilib repository; see also (8)
# #
@ -19,6 +17,7 @@ FROM archlinux:base-devel
# 9. Install 'multilib-devel' group, see https://wiki.archlinux.org/index.php/Makepkg#Build_32-bit_packages_on_a_64-bit_system # 9. Install 'multilib-devel' group, see https://wiki.archlinux.org/index.php/Makepkg#Build_32-bit_packages_on_a_64-bit_system
RUN printf '\n[options]\nDisableDownloadTimeout\n' >> /etc/pacman.conf && \ RUN printf '\n[options]\nDisableDownloadTimeout\n' >> /etc/pacman.conf && \
printf '\n[options]\nNoExtract = !usr/share/doc/qt/*\n' >> /etc/pacman.conf && \ printf '\n[options]\nNoExtract = !usr/share/doc/qt/*\n' >> /etc/pacman.conf && \
sed --in-place 's|^#ParallelDownloads\s*=.*$|ParallelDownloads = 4|' /etc/pacman.conf && \
printf '\n[de-p1st]\nSigLevel = Optional TrustAll\nServer = https://arch.p1st.de\n' >> /etc/pacman.conf && \ printf '\n[de-p1st]\nSigLevel = Optional TrustAll\nServer = https://arch.p1st.de\n' >> /etc/pacman.conf && \
printf '\n[home_ungoogled_chromium_Arch]\nSigLevel = Required TrustAll\nServer = https://download.opensuse.org/repositories/home:/ungoogled_chromium/Arch/$arch\n' >> /etc/pacman.conf && \ printf '\n[home_ungoogled_chromium_Arch]\nSigLevel = Required TrustAll\nServer = https://download.opensuse.org/repositories/home:/ungoogled_chromium/Arch/$arch\n' >> /etc/pacman.conf && \
curl -s 'https://download.opensuse.org/repositories/home:/ungoogled_chromium/Arch/x86_64/home_ungoogled_chromium_Arch.key' | pacman-key --add - && \ curl -s 'https://download.opensuse.org/repositories/home:/ungoogled_chromium/Arch/x86_64/home_ungoogled_chromium_Arch.key' | pacman-key --add - && \