构建脚本准备

This commit is contained in:
2026-02-16 11:22:33 +08:00
parent 41ad420c72
commit 3e4c54e29a
6 changed files with 133 additions and 0 deletions

12
build/builder-setup.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
set -eux
export TARGET_USER=ecs-user
export REGISTRY_IP=172.22.178.82
sudo apt update
sudo apt install -y npm git
curl -fsSL https://raw.githubusercontent.com/docker/docker-install/master/install.sh | sh
sudo usermod -aG docker $TARGET_USER
echo "$REGISTRY_IP registry.yqxpro.com" | sudo tee -a /etc/hosts