Disable dnf zchunk; artifactapi ignores Range
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build/2 Pipeline was successful
ci/woodpecker/pr/build/4 Pipeline was successful
ci/woodpecker/pr/build/3 Pipeline was successful
ci/woodpecker/pr/build/1 Pipeline was successful

This commit is contained in:
2026-10-03 09:54:48 +10:00
parent 976fb0b3a9
commit 68e27e2560
+2 -1
View File
@@ -5,7 +5,7 @@ ARG DISTRO=alma9
COPY distros/${DISTRO}/ /tmp/distro/
# DL3041: versions are pinned by the estate dnf repos, not here. SC2086: $PACKAGES is a
# word list on purpose. DL4006: the only pipe ends in sha256sum, whose status is the
# pipeline's, and set -e catches it.
# pipeline's, and set -e catches it. zchunk is off because artifactapi ignores Range requests.
# hadolint ignore=DL3041,DL4006,SC2086
RUN set -eux; \
. /tmp/distro/distro.env; \
@@ -14,6 +14,7 @@ RUN set -eux; \
echo "$CA_RPM_SHA256 /tmp/ca.rpm" | sha256sum -c -; \
rpm -i /tmp/ca.rpm; \
cp /tmp/distro/yum.repos.d/*.repo /etc/yum.repos.d/; \
sed -i '/^\[main\]/a zchunk=False' /etc/dnf/dnf.conf; \
dnf makecache; \
dnf update -y; \
dnf install -y $PACKAGES; \