Martin e3a98140ef
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 11s
[+] init app 增加自定义源支持
2025-02-05 16:07:18 +08:00
2025-01-13 21:13:31 +08:00
2025-01-26 23:40:19 +08:00
2025-01-13 21:12:49 +08:00
2025-01-04 15:41:59 +08:00
2025-01-13 21:24:02 +08:00
2025-01-26 09:45:11 +08:00
2025-01-15 15:51:28 +08:00
2025-01-26 23:40:19 +08:00
2025-01-13 21:12:49 +08:00
2025-01-13 21:12:49 +08:00
2025-01-23 11:23:43 +08:00

安装

# 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
# npm
curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-npm.sh | bash
# pip
curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-pip.sh | bash
# git
curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-git.sh | bash
# k8s
curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-k8s.sh | bash


# 初始化全部
curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-all.sh | bash

Python 镜像源配置测试

pip config set global.index-url https://mirrors.martin98.com/repository/pypi-group/simple

NPM

npm config set registry https://mirrors.martin98.com/repository/npm-group/

Rust(cargo 版本 >=1.68)

linux: ~/.cargo/config Windows: %USERPROFILE%.cargo\config

[source.crates-io]
replace-with = 'mirrors'

[source.mirrors]
registry = "sparse+https://mirrors.martin98.com/repository/rust/"

dockerfile

COPY --from=docker.martin98.com/martin_farm/init:latest /scripts /scripts
RUN /scripts/init-apt.sh

APT 镜像源配置测试

docker compose run debian ./init-all.sh
docker compose run ubuntu ./init-all.sh
docker compose run ubuntu-2204 ./init-all.sh
Description
No description provided
Readme 227 KiB
0.1.3 Latest
2025-04-03 11:16:33 +08:00
Languages
Shell 99.9%