[*] 修改说明文档
This commit is contained in:
parent
dfc315c801
commit
2571ca9ffd
36
README.md
36
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
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user