Skip to content

Packer recipe for a docker-capable Amazon EC2 AMI

Notifications You must be signed in to change notification settings

picatic/docker-ami-packer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Packer Recipe for a Docker-Capable Amazon EC2 AMI

This is a very minimal AMI that has Docker installed, on Ubuntu (HVM).

It uses the official Ubuntu Docker (lxc-docker) packages.

Usage

This is a Packer template. Install the latest version of Packer, then:

packer build \
  -var docker_version=1.6.2 \
  -var source_ami=ami-d05e75b8 \
  -var aws_region=$AWS_REGION \
  -var aws_access_key=$AWS_ACCESS_KEY_ID \
  -var aws_secret_key=$AWS_SECRET_ACCESS_KEY \
  docker-ami.json

For VPC:

packer build \
  -var docker_version=1.6.2 \
  -var source_ami=ami-<id> \
  -var instance_type=m3.medium \
  -var aws_region=$AWS_REGION \
  -var aws_access_key=$AWS_ACCESS_KEY_ID \
  -var aws_secret_key=$AWS_SECRET_ACCESS_KEY \
  -var vpc_id=vpc-<id> \
  -var subnet_id=subnet-<id> \
  docker-ami-vpc.json

This will chew for a bit and finally output the AMI ID.

About

Packer recipe for a docker-capable Amazon EC2 AMI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%