Skip to content

Instantly share code, notes, and snippets.

@chrislewis
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrislewis/f4dbbe6ec20f5b36ae24 to your computer and use it in GitHub Desktop.
Save chrislewis/f4dbbe6ec20f5b36ae24 to your computer and use it in GitHub Desktop.
# 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