This commit is contained in:
2026-03-14 01:37:08 +08:00
parent 802c19db0a
commit 17a30c454e
2 changed files with 19 additions and 3 deletions
+10 -3
View File
@@ -19,15 +19,22 @@ ARG GFX=gfx120X-all
RUN set -euo pipefail; \
BASE="https://therock-nightly-tarball.s3.amazonaws.com"; \
PREFIX="therock-dist-linux-${GFX}-${ROCM_MAJOR_VER}"; \
echo "Fetching file list from ${BASE}..."; \
KEY="$(curl -x socks5://192.168.0.11:1080 -s "${BASE}?list-type=2&prefix=${PREFIX}" \
| tr '<' '\n' \
| grep -o "therock-dist-linux-${GFX}-${ROCM_MAJOR_VER}\..*\.tar\.gz" \
| sort -V | tail -n1)"; \
if [ -z "$KEY" ]; then \
echo "ERROR: Failed to get tarball filename"; \
exit 1; \
fi; \
echo "Downloading Latest Tarball: ${KEY}"; \
curl -x socks5://192.168.0.11:1080 -L -o therock.tar.gz "${BASE}/${KEY}"; \
curl -x socks5://192.168.0.11:1080 -L -o therock.tar.gz "${BASE}/${KEY}" || { echo "ERROR: Download failed"; exit 1; }; \
echo "Extracting tarball..."; \
mkdir -p /opt/rocm; \
tar xzf therock.tar.gz -C /opt/rocm --strip-components=1; \
rm therock.tar.gz
tar xzf therock.tar.gz -C /opt/rocm --strip-components=1 || { echo "ERROR: Extraction failed"; exit 1; }; \
rm therock.tar.gz; \
echo "ROCm SDK installed successfully"
# 3. Configure Global ROCm Environment
RUN export ROCM_PATH=/opt/rocm && \
+9
View File
@@ -0,0 +1,9 @@
FROM registry.fedoraproject.org/fedora:43
RUN dnf -y install --setopt=install_weak_deps=False --nodocs curl && dnf clean all
RUN echo "=== Testing SOCKS5 ===" && \
curl -x socks5://192.168.0.11:1080 -v https://www.google.com 2>&1 | head -20 || echo "SOCKS5 FAILED"
RUN echo "=== Testing HTTP ===" && \
curl -x http://192.168.0.11:1080 -v https://www.google.com 2>&1 | head -20 || echo "HTTP FAILED"