forked from taskcluster/docker-worker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpacker.json
55 lines (54 loc) · 1.13 KB
/
packer.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"description": "taskcluster docker worker vm",
"variables": {
"docker_worker": ""
},
"provisioners": [
{
"type": "shell",
"scripts": [
"vm/scripts/docker.sh",
"vm/scripts/node.sh"
]
},
{
"type": "file",
"source": "{{user `docker_worker`}}",
"destination": "/tmp/{{user `docker_worker`}}"
},
{
"type": "file",
"source": "vm/scripts/deploy.sh",
"destination": "/tmp/deploy.sh"
},
{
"type": "shell",
"inline": ["chmod u+x /tmp/deploy.sh"]
},
{
"type": "shell",
"inline": ["/tmp/deploy.sh /tmp/{{user `docker_worker`}}"]
}
],
"builders": [
{
"type": "amazon-ebs",
"region": "us-west-2",
"source_ami": "ami-62e78652",
"instance_type": "m3.large",
"ssh_username": "ubuntu",
"ami_name": "taskcluster-docker-worker {{timestamp}}",
"tags": {
"OS_Version": "Ubuntu",
"Release": "Latest"
}
}
],
"post-processors": [
{
"type": "vagrant",
"output": "vm/docker_worker_aws.box",
"keep_input_artifact": true
}
]
}