构建脚本准备

This commit is contained in:
2026-02-14 22:21:24 +08:00
parent 6d3a5d4cd4
commit 25c2af1b52

View File

@@ -1,13 +1,11 @@
#!/bin/bash
export IP=172.22.178.77
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 $USER
docker buildx create --use --name multiarch-builder --driver-opt "env.HOST_ALIASES=registry.yqxpro.com:${IP}"
echo "$IP registry.yqxpro.com" | sudo tee -a /etc/hosts
docker buildx create --use --bootstrap --name multiarch-builder --driver-opt network=host
echo "127.0.0.1 registry.yqxpro.com" | sudo tee -a /etc/hosts
tar xvzf certs.tgz
docker run -d \