From 2571ca9ffd1ac2c40f0dee2a9a2209e99f061890 Mon Sep 17 00:00:00 2001 From: Martin <1403951401@qq.com> Date: Sun, 5 Jan 2025 23:20:07 +0800 Subject: [PATCH] =?UTF-8?q?[*]=20=E4=BF=AE=E6=94=B9=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 7f2a140..2f94306 100644 --- a/README.md +++ b/README.md @@ -3,32 +3,18 @@ ```bash # apt + ntp curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-apt.sh | bash - # docker-ce curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-docker.sh | bash - # 初始化全部 curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-all.sh | bash ``` - - - - - -#### 进入容器 +#### Python 镜像源配置测试 ```bash -docker compose run debian bash +pip config set global.index-url https://mirrors.martin98.com/repository/pypi-group/simple ``` +#### NPM ```bash -docker compose run ubuntu bash -``` - -#### APT 镜像源配置测试 -```bash -docker compose run debian ./init-apt.sh -``` -```bash -docker compose run ubuntu ./init-apt.sh +npm config set registry https://mirrors.martin98.com/repository/npm-group/ ``` ##### docker 容器中 @@ -44,12 +30,18 @@ RUN --mount=type=cache,target=/var/cache/apt \ python3-dev ``` -#### Python 镜像源配置测试 +#### 进入容器 ```bash -pip config set global.index-url https://mirrors.martin98.com/repository/pypi-group/simple +docker compose run debian bash +``` +```bash +docker compose run ubuntu bash ``` -#### NPM +#### APT 镜像源配置测试 ```bash -npm config set registry https://mirrors.martin98.com/repository/npm-group/ +docker compose run debian ./init-apt.sh +``` +```bash +docker compose run ubuntu ./init-apt.sh ``` \ No newline at end of file