forked from mitchellh/packer-ubuntu-12.04-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-amazon.json
41 lines (38 loc) · 1.01 KB
/
template-amazon.json
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
35
36
37
38
39
40
41
{
"variables": {
"aws_access_key": "",
"aws_secret_key": ""
},
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key` }}",
"region": "us-east-1",
"source_ami": "ami-53b1ff3a",
"instance_type": "m1.small",
"ssh_username": "ubuntu",
"ami_name": "packer-docker {{timestamp}}"
}
],
"provisioners": [
{
"type": "shell",
"script": "scripts/kernel.sh",
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E '{{ .Path }}'"
},
{
"type": "shell",
"scripts": [
"scripts/docker.sh"
],
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E '{{ .Path }}'"
}
],
"post-processors": [
{
"type": "vagrant",
"keep_input_artifact": true
}
]
}