Step 1: Create a CentOS 6.7x64 droplet. Give it some name, e.g: "centos-droplet". Ensure that you choose a minimum of 1GB RAM, and enable Private Networking option while creating the droplet.
Step 2: Login as root to your new droplet.
Step 3: Add host entry for your droplet name. For instance, if your droplet is called "centos-droplet":
Step 4: Install Open JDK7 (you can also install just the JRE)
Step 5: Ensure that java is installed
sudo yum install java-1.7.0-openjdk-devel
Step 6: Now register ThoughtWorks Go YUM repo by executing the following command:
Step 7: Install the Go Server
echo " [gocd] name = GoCD YUM Repository baseurl = http://dl.bintray.com/gocd/gocd-rpm enabled = 1 gpgcheck = 0 " > /etc/yum.repos.d/thoughtworks-go.repo
yum install -y go-server
On the droplet you can run 'ps -ef | grep java' to see the server, and agent processes.
Step 8: Check if Go Server service is running. If not, start the service.
service go-server statusservice go-server startStep 9: The server should now be running on port 8153. You should be able to open a browser on your laptop, and connect to the remote Digital Ocean droplet Go server UI on http://ip-of-your-droplet:8153/go
Step 10: Install the Go Agent (on the same droplet)yum install -y go-agentStep 11: Check if Go Agent service is running. If not, start the service.service go-agent statusservice go-agent start
At this point, both your Go server and agent should be up and running. If you go to the "Agents" tab in your Go Server UI, you should be able to see this agent registered (with the same name as your droplet machine name).
That's it. You should be good to Go! If there are any issues, you can check server logs at /var/log/go-server and agent logs at /var/log/go-agent folder.
Post a Comment