How to Install GoCD on Fedora Server Latest

GoCD is a popular Continuous Integration/Continuous Deployment (CI/CD) tool used for automating the release and deployment processes. This tutorial will guide you through the process of installing GoCD on a Fedora Server Latest.

Prerequisites

Step 1: Update system packages

Before installing GoCD, it is recommended to update the system packages.

sudo dnf update -y

Step 2: Install GoCD repository

GoCD is available from the official GoCD repository. To install the repository, add the following repository to your system.

sudo tee /etc/yum.repos.d/gocd.repo <<-'EOF'
[gocd]
name=GoCD YUM Repository
baseurl=https://download.gocd.io
enabled=1
gpgcheck=1
gpgkey=https://download.gocd.io/GOCD-GPG-KEY.asc
EOF

Step 3: Install GoCD server

To install the GoCD server, run the following command.

sudo dnf install -y go-server

GoCD’s web-based user interface listens on port 8153 by default. To enable access to the web interface from anywhere, you need to open that port on the firewall.

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

Step 4: Install GoCD agent

To install the GoCD agent, run the following command.

sudo dnf install -y go-agent

You need to configure the GoCD agent to connect to the GoCD server.

sudo sed -i 's/GO_SERVER_URL=https:\/\/localhost:8154/GO_SERVER_URL=https:\/\/<go-server-ip>:8154/' /etc/default/go-agent

NOTE: Replace <go-server-ip> with the IP address of your GoCD server.

Once the configuration is complete, you can start the GoCD agent.

sudo systemctl start go-agent

Step 5: Accessing GoCD web interface

Open a web browser and go to http://<server-ip>:8153 to access the GoCD web interface.

Conclusion

In this tutorial, you learned how to install and configure GoCD server and agent on Fedora Server Latest. You can now start using GoCD for your CI/CD needs.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!