Setting Up Jenkins - SamirTalwar/the-tiniest-service GitHub Wiki
mkdir $HOME/jenkins
sudo chown 1000 $HOME/jenkins
docker run -d --name jenkins -p 8080:8080 \
-v $HOME/jenkins:/var/jenkins_home \
-v /usr/bin/docker:/usr/bin/docker:ro \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
zero2continuousdeployment/jenkins
sudo iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT
sudo iptables -A INPUT -i eth0 -p tcp --dport 8080 -j ACCEPT
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080