main
Tsinghua does not carry x86_64 Fedora 43 updates. USTC has full coverage for both x86_64 and aarch64. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Smart Mirror
A simple script to speed up docker build by using mirror sites in China.
How it works
It checks if your are in China office by checking nexus.tdology.com`IP. If yes(a private IP address, but not a public one), It tries to use the mirror sites in China for speeding up the build.
How to use
In your Dockerfile, try to run the script before doing anything, e.g.
FROM alpine:3.18
ADD https://git.piicloud.cn/public/smart-mirror/raw/branch/main/smart-mirror.sh /tmp/smart-mirror.sh
RUN sh /tmp/smart-mirror.sh
ENV no_proxy=nexus.tdology.com,localhost,127.0.0.1
ENV NO_PROXY=nexus.tdology.com,localhost,127.0.0.1
or
FROM alpine:3.18
RUN curl -fsSL https://git.piicloud.cn/public/smart-mirror/raw/branch/main/smart-mirror.sh | sh
Description
Languages
Shell
100%