Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ppabc committed May 20, 2018
1 parent a53051a commit d15ec43
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions git/gitlab_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash
## gitlab_yum 2018-05-20
## http://www.aqzt.com
##email: [email protected]
##robert yu
##centos 6和centos 7

yum install -y curl policycoreutils-python openssh-server
systemctl enable sshd
systemctl start sshd

yum install -y postfix
systemctl enable postfix
systemctl start postfix

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

yum makecache
yum install -y gitlab-ce


cat >>/etc/yum.repos.d/gitlab-ce.repo<<EOF
[gitlab-runner]
name=gitlab-runner
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-runner/yum/el7
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
EOF

yum makecache
yum install -y gitlab-runner

echo ok

0 comments on commit d15ec43

Please sign in to comment.