Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Zero to Dockerized Jenkins on AWS.
# We use the stock docker image (https://registry.hub.docker.com/_/jenkins/)
# as well as the stock Linux AMI (as of this writing https://aws.amazon.com/amazon-linux-ami/2014.09-release-notes/).
# We also assume you have configured an AWS identity, key pair, a security
# group that allows inbound TCP/8080, and that you have associated these with
# the instance.
sudo yum install docker
sudo service docker start
sudo mkdir /var/jenkins_home && sudo chmod 777 /var/jenkins_home
sudo docker run --name myjenkins -d -p 8080:8080 -v /var/jenkins_home:/var/jenkins_home jenkins
# Jenkins should now be running and available on port 8080.
cd /tmp && wget https://dl.bintray.com/sbt/native-packages/sbt/0.13.7/sbt-0.13.7.tgz
cd /var/jenkins_home
tar zxf /tmp/sbt-0.13.7.tgz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.