faster downloads from S3

This commit is contained in:
Donato Capitella
2025-10-11 18:34:08 +01:00
parent 6e4daadce9
commit dff981b1bc
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ FROM registry.fedoraproject.org/fedora:rawhide AS builder
RUN dnf -y --nodocs --setopt=install_weak_deps=False install \ RUN dnf -y --nodocs --setopt=install_weak_deps=False install \
make gcc cmake lld clang clang-devel compiler-rt libcurl-devel \ make gcc cmake lld clang clang-devel compiler-rt libcurl-devel \
radeontop git vim patch curl ninja-build tar xz \ radeontop git vim patch curl ninja-build tar xz aria2c \
&& dnf clean all && rm -rf /var/cache/dnf/* && dnf clean all && rm -rf /var/cache/dnf/*
# find & fetch the latest Linux 7.x.x rc tarball (gfx1151) # find & fetch the latest Linux 7.x.x rc tarball (gfx1151)
@@ -17,7 +17,7 @@ RUN set -euo pipefail; \
| grep -o "therock-dist-linux-${GFX}-${ROCM_MAJOR_VER}\.[0-9]\+\.[0-9]\+rc[0-9]\{8\}\.tar\.gz" \ | grep -o "therock-dist-linux-${GFX}-${ROCM_MAJOR_VER}\.[0-9]\+\.[0-9]\+rc[0-9]\{8\}\.tar\.gz" \
| sort | tail -n1)"; \ | sort | tail -n1)"; \
echo "Latest tarball: ${KEY}"; \ echo "Latest tarball: ${KEY}"; \
curl -L --fail -o therock.tar.gz "${BASE}/${KEY}" aria2c -x 16 -s 16 -j 16 --file-allocation=none "${BASE}/${KEY}" -o therock.tar.gz
RUN mkdir -p /opt/rocm-7.0 \ RUN mkdir -p /opt/rocm-7.0 \
&& tar xzf therock.tar.gz -C /opt/rocm-7.0 --strip-components=1 && tar xzf therock.tar.gz -C /opt/rocm-7.0 --strip-components=1
+2 -2
View File
@@ -3,7 +3,7 @@ FROM registry.fedoraproject.org/fedora:rawhide AS builder
RUN dnf -y --nodocs --setopt=install_weak_deps=False install \ RUN dnf -y --nodocs --setopt=install_weak_deps=False install \
make gcc cmake lld clang clang-devel compiler-rt libcurl-devel \ make gcc cmake lld clang clang-devel compiler-rt libcurl-devel \
radeontop git vim patch curl ninja-build tar xz \ radeontop git vim patch curl ninja-build tar xz aria2c \
&& dnf clean all && rm -rf /var/cache/dnf/* && dnf clean all && rm -rf /var/cache/dnf/*
# find & fetch the latest Linux 7.x.x rc tarball (gfx1151) # find & fetch the latest Linux 7.x.x rc tarball (gfx1151)
@@ -17,7 +17,7 @@ RUN set -euo pipefail; \
| grep -o "therock-dist-linux-${GFX}-${ROCM_MAJOR_VER}\.[0-9]\+\.[0-9]\+rc[0-9]\{8\}\.tar\.gz" \ | grep -o "therock-dist-linux-${GFX}-${ROCM_MAJOR_VER}\.[0-9]\+\.[0-9]\+rc[0-9]\{8\}\.tar\.gz" \
| sort | tail -n1)"; \ | sort | tail -n1)"; \
echo "Latest tarball: ${KEY}"; \ echo "Latest tarball: ${KEY}"; \
curl -L --fail -o therock.tar.gz "${BASE}/${KEY}" aria2c -x 16 -s 16 -j 16 --file-allocation=none "${BASE}/${KEY}" -o therock.tar.gz
RUN mkdir -p /opt/rocm-7.0 \ RUN mkdir -p /opt/rocm-7.0 \
&& tar xzf therock.tar.gz -C /opt/rocm-7.0 --strip-components=1 && tar xzf therock.tar.gz -C /opt/rocm-7.0 --strip-components=1