Created
August 12, 2014 01:09
-
-
Save jessereynolds/bfad9cf7a8015d72fba1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
"variables": { | |
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}", | |
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}" | |
}, | |
"builders": [{ | |
"type": "amazon-ebs", | |
"access_key": "{{user `aws_access_key`}}", | |
"secret_key": "{{user `aws_secret_key`}}", | |
"region": "us-east-1", | |
"source_ami": "ami-b027efd8", | |
"instance_type": "m3.medium", | |
"ssh_username": "ubuntu", | |
"ami_name": "docker/flapjack/omnibus-ubuntu ebs-ssd {{timestamp}}" | |
}], | |
"provisioners": [{ | |
"type": "shell", | |
"inline": [ | |
"sleep 30", | |
"sudo apt-get update", | |
"if [ ! -e /usr/lib/apt/methods/https ]; then sudo apt-get install -y apt-transport-https ; fi", | |
"sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9", | |
"sudo sh -c \"echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list\"", | |
"sudo apt-get update", | |
"sudo apt-get install -y lxc-docker", | |
"sudo docker pull flapjack/omnibus-ubuntu", | |
"sudo docker images", | |
"sudo service docker stop", | |
"sleep 5", | |
"sudo service docker status" | |
] | |
}] | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment