THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
Setup a Jenkins master
sudo adduser jenkins -u 1000 sudo yum install -y docker git sudo su - jenkins -c "git config --global user.email \"jenkins@bigtop.apache.org\"" sudo su - jenkins -c "git config --global user.name \"jenkins\"" sudo usermod -a -G docker jenkins sudo service docker start sudo su - jenkins -c "docker run -d --name jenkins-master -p 80:8080 -v `pwd`:/var/jenkins_home jenkins"
plugins installation:
git plugin
slave installation:
mkdir /home/jenkins/.ssh
cat << EOF > /home/jenkins/.ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC68FPTbXxat0WRX9W6LBB6UVGJRn90fWdqEtj6dWbPPAhVxi4093Oqnu688Csx/Y7G+ccO3TSsiTcg8k5ksju9n6X3l2is/oQtKX3i700HfXy2hA/pk799lc9z3ATmZrRs47Wq3h5jkDUAKHWl6zf7W0TRLUtf6suUHprw6n9GxbJ2kmmuqxTTD2lxwgxkYZSFYLqXJtwrjvI1VuKAp/rjTOT+54SNMSBEcETXzJR7GvhrzwmeBMo0ZdfLA4mvTMDjdDJipqKynMM3kUhNzC4C9RRxK3B0oVy7AlfyFunKf1uHURHSZ+4MDJu/OVsrKOyfrJeNFvaoqb2tnZTQWvAJ jenkins@ip-172-31-6-236
EOF
chmod700 /home/jenkins/.ssh
chmod400 /home/jenkins/.ssh/authorized_keys