Installing Go build server on centos 7

Installing the go build server in centos 7 with some easy step

 

 

1. First head over to the go page and have a look around

http://www.go.cd/

2. Download go server to you centos box

 

wget http://download.go.cd/gocd-rpm/go-server-14.4.0-1356.noarch.rpm
wget http://download.go.cd/gocd-rpm/go-agent-14.4.0-1356.noarch.rpm

3. Install it

First start by adding the go user (something broken in install)

useradd go

Now run yum localinstall to install local packages

yum install java-1.7.0-openjdk -y
yum localinstall go-server-14.4.0-1356.noarch.rpm
yum localinstall go-agent-14.4.0-1356.noarch.rpm
/etc/init.d/go-agent restart
/etc/init.d/go-server restart

 

 

4. Start using it

firewall-cmd --zone=public --add-port=8153/tcp --permanent
firewall-cmd --zone=public --add-port=8154/tcp --permanent
firewall-cmd --reload

http://<your ip ore hostname>:8153

 

 

5. Use apache to proxy

Listen nnn.nnn.nnn.nnn:80
NameVirtualHost nnn.nnn.nnn.nnn:80

<VirtualHost nnn.nnn.nnn.nnn:80>
    ServerName go.yourdomain.com
    DocumentRoot /var/www/html
    SSLProxyEngine on
    SSLEngine on
    ProxyPass / https://localhost:8154/
    ProxyPassReverse / https://localhost:8154/
</VirtualHost>