Skip to content

Instantly share code, notes, and snippets.

@xuyuji9000
Last active August 10, 2017 18:34
Show Gist options
  • Save xuyuji9000/ade0892d177d6594c8907ec56e1a5c62 to your computer and use it in GitHub Desktop.
Save xuyuji9000/ade0892d177d6594c8907ec56e1a5c62 to your computer and use it in GitHub Desktop.
#!/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
@xuyuji9000
Copy link
Author

xuyuji9000 commented Aug 10, 2017

install jenkins command

source <(curl -s  https://gist.githubusercontent.com/xuyuji9000/ade0892d177d6594c8907ec56e1a5c62/raw/9e7bad32448dce63e9bb440dbdf80b8fc8366572/ubuntu-1604-install-jenkins.sh)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment