From 17a30c454ebad17d020a3d5ad7431130ba85b6c6 Mon Sep 17 00:00:00 2001 From: SZCJW <792430652@qq.com> Date: Sat, 14 Mar 2026 01:37:08 +0800 Subject: [PATCH] x --- Dockerfile | 13 ++++++++++--- test_proxy3.Dockerfile | 9 +++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 test_proxy3.Dockerfile diff --git a/Dockerfile b/Dockerfile index c1fb2bb..30a4bc1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \ diff --git a/test_proxy3.Dockerfile b/test_proxy3.Dockerfile new file mode 100644 index 0000000..7bf7089 --- /dev/null +++ b/test_proxy3.Dockerfile @@ -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"