forked from d11wtq/docker-ami-packer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-ami.json
More file actions
34 lines (31 loc) · 908 Bytes
/
docker-ami.json
File metadata and controls
34 lines (31 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"description": "Docker-capable AMI for Amazon EC2",
"variables": {
"aws_access_key": "",
"aws_secret_key": "",
"aws_region": "",
"docker_version": "1.6.0",
"source_ami": "",
"instance_type": "t2.micro"
},
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "{{user `aws_region`}}",
"source_ami": "{{user `source_ami`}}",
"instance_type": "{{user `instance_type`}}",
"ssh_username": "ubuntu",
"ami_name": "docker-{{user `docker_version`}} ({{timestamp}})",
"vpc_id": "{{user `vpc_id`}}",
"subnet_id": "{{user `subnet_id`}",
"associate_public_ip_address": "{{user `public_ip`}}"
}],
"provisioners": [{
"type": "shell",
"environment_vars": [
"docker_version={{user `docker_version`}}"
],
"scripts": ["provision.sh"]
}]
}