2026-03-14 01:39:59 +08:00
|
|
|
FROM registry.fedoraproject.org/fedora:43
|
|
|
|
|
|
|
|
|
|
RUN dnf -y install --setopt=install_weak_deps=False --nodocs curl && dnf clean all
|
|
|
|
|
|
|
|
|
|
RUN echo "=== Test 1: Direct connection ===" && \
|
2026-03-14 01:42:15 +08:00
|
|
|
curl -s "https://therock-nightly-tarball.s3.amazonaws.com?list-type=2&prefix=therock-dist-linux-gfx120X-all-7" > /tmp/direct.xml && \
|
|
|
|
|
echo "Direct result size: $(wc -c < /tmp/direct.xml) bytes" && \
|
|
|
|
|
grep -o "therock-dist-linux-gfx120X-all-7[^\"]*\.tar\.gz" /tmp/direct.xml | head -5
|
2026-03-14 01:39:59 +08:00
|
|
|
|
|
|
|
|
RUN echo "=== Test 2: SOCKS5 proxy ===" && \
|
2026-03-14 01:42:15 +08:00
|
|
|
curl -x socks5://192.168.0.11:1080 -s "https://therock-nightly-tarball.s3.amazonaws.com?list-type=2&prefix=therock-dist-linux-gfx120X-all-7" > /tmp/proxy.xml && \
|
|
|
|
|
echo "Proxy result size: $(wc -c < /tmp/proxy.xml) bytes" && \
|
|
|
|
|
grep -o "therock-dist-linux-gfx120X-all-7[^\"]*\.tar\.gz" /tmp/proxy.xml | head -5
|