Skip to content

Instantly share code, notes, and snippets.

@jan-koch
Last active September 11, 2019 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jan-koch/d7b782c7cd7a377a4e0f855e2fa05cba to your computer and use it in GitHub Desktop.
Save jan-koch/d7b782c7cd7a377a4e0f855e2fa05cba to your computer and use it in GitHub Desktop.
Commands to install Jenkins on a Ubuntu 18.04 droplet in Digital Ocean. (Run as root)
// First add the repository key to the system.
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
// Append the Debian repository to your server's sources.list
sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
// Update your package index
apt update
// Run an upgrade
apt upgrade
// Install the Java JDK
apt install openjdk-11-jdk
// Install Jenkins and PHP 7.2 (used for this course)
apt install jenkins php7.2 php7.2-mbstring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment