#!/bin/sh sed -i 's|archive\.ubuntu\.com|mirrors.ocf.berkeley.edu|g' /etc/apt/sources.list echo "192.168.33.1 nexus-proxy" >> /etc/hosts cat >> /etc/inputrc < /etc/apt/sources.list.d/jenkins.list' apt-get update apt-get -y install jenkins jenkins-job-builder python-pip apt-get -y install docker.io sudo usermod -aG docker ubuntu sudo usermod -aG docker jenkins su -l jenkins -c "/vagrant/jenkins-init-1.sh" sudo systemctl restart jenkins sleep 5 su -l jenkins -c "/vagrant/jenkins-init-2.sh" sudo systemctl restart jenkins sleep 5 su -l jenkins -c "/vagrant/jjb-init.sh"