liyi e34b2c173c Switch Fedora mirror from Tsinghua to USTC
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>
2026-09-09 02:05:48 +02:00

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
S
Description
No description provided
Readme 71 KiB
Languages
Shell 100%