Last active
August 29, 2015 14:10
-
-
Save chrislewis/f4dbbe6ec20f5b36ae24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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