How to Install GoCD on Debian Latest
GoCD is a continuous delivery tool that helps automate build and deployment pipelines. In this tutorial, we will learn how to install the latest version of GoCD on Debian.
Prerequisites
- A Debian system with root or sudo access.
- Java 8 or later version installed on the system.
Step 1: Update Packages
Before installing any software, it is best practice to update the package list and upgrade the available packages on the system. Use the following commands to do so:
sudo apt update
sudo apt upgrade
Step 2: Install GoCD
GoCD provides a repository to install and update the software on Debian systems. We need to add the GoCD repository to the system package manager with the following commands:
echo "deb https://download.gocd.com /" | sudo tee /etc/apt/sources.list.d/gocd.list
curl https://download.gocd.com/GOCD-GPG-KEY.asc | sudo apt-key add -
After adding the GoCD repository, run the command to update the system package list.
sudo apt update
To install GoCD, use the following command:
sudo apt install go-server
This will install the GoCD server along with its dependencies.
Step 3: Start GoCD Service
After installing the GoCD server, we need to start the service. Use the following command to start the GoCD service:
sudo systemctl start go-server
Step 4: Verify GoCD Installation
To verify that GoCD is running, open a web browser and navigate to http://localhost:8153/go. If everything is correctly configured, you should see the GoCD dashboard.
Congratulations, you have successfully installed and set up GoCD on Debian. You can now use the platform for continuous delivery and automation.