Last active
September 11, 2019 11:22
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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