gitlab_最新版本一键化安装shell脚本

#!/bin/bash #gitlab安装 cat > /etc/yum.repos.d/gitlab-ce.repo << 'EOF' [gitlab-ce] name=Gitlab CE Repository baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/ gpgcheck=0 enabled=1 EOF wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo sleep 5 wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo #pypi 镜像 #临时使用 yum install python-pip -y pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package pip install pip -U pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U #docker-ce wget -O /etc/yum.repos.d/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo [阅读全文]