需求: 新增一个办公室的runner来跑CI,本次机器为全新机器无基础环境,详细操作步骤如下:
# 新建gitlab-runner用户
vim add_gitlab-runner_user.sh
apt-get install vim
# 安装docker
apt-get update
# 安装 apt 依赖包,用于通过HTTPS来获取仓库:
apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
# 添加 Docker 的官方 GPG 密钥:
curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg |