Last active
August 10, 2017 18:34
-
-
Save xuyuji9000/ade0892d177d6594c8907ec56e1a5c62 to your computer and use it in GitHub Desktop.
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/bash | |
# install docker | |
sudo apt-get update | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common -y | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt-get update | |
sudo apt-get install docker-ce docker-compose -y | |
sudo usermod -aG docker $USER | |
# install jenkins | |
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add - | |
sudo apt-add-repository 'deb https://pkg.jenkins.io/debian binary/' | |
sudo apt-get update | |
sudo apt-get install openjdk-8-jdk -y | |
sudo apt-get install jenkins -y | |
sudo usermod -aG docker jenkins | |
sudo systemctl restart jenkins |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
install jenkins command