...
To reduce the repeating preparation of CI, we encapsulate the building/testing environment into a docker image here: https://hub.docker.com/r/apachepegasus/ci-env.
This image is hosted on both DockerHub (the default docker registry) and Aliyun, which has a significantly faster download speed for Chinese users.
To configure the self-hosted runner with Aliyun acceleration:
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://x6sv8ed6.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker