Skip to content

Instantly share code, notes, and snippets.

@jeffa
Last active July 2, 2024 22:35
Show Gist options
  • Save jeffa/eec26b4632c167829f67cdee173162d8 to your computer and use it in GitHub Desktop.
Save jeffa/eec26b4632c167829f67cdee173162d8 to your computer and use it in GitHub Desktop.
Install Java and Jenkins and Docker
#!/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