Last active
July 2, 2024 22:35
-
-
Save jeffa/eec26b4632c167829f67cdee173162d8 to your computer and use it in GitHub Desktop.
Install Java and Jenkins and Docker
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
#!/bin/sh | |
sudo apt update -y | |
sudo apt install openjdk-11-jre -y | |
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null | |
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null | |
sudo apt update -y | |
sudo apt install jenkins -y | |
curl -fsSL https://get.docker.com -o - | sudo sh | |
sudo usermod -aG docker $USER && sudo systemctl restart docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment