forked from taskcluster/docker-worker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbase.json
86 lines (86 loc) · 2.46 KB
/
base.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"description": "taskcluster worker system dependencies",
"variables": {
"papertrail": "",
"privateKeyLocation": "",
"sslCertificateLocation": "",
"sslKeyLocation": "",
"workerRevision": ""
},
"provisioners": [
{ "type": "file",
"source": "{{user `privateKeyLocation`}}",
"destination": "/tmp/docker-worker-priv.pem"
},
{ "type": "file",
"source": "{{user `sslCertificateLocation`}}",
"destination": "/tmp/star_taskcluster-worker_net.crt"
},
{ "type": "file",
"source": "{{user `sslKeyLocation`}}",
"destination": "/tmp/star_taskcluster-worker_net.key"
},
{
"type": "shell",
"inline": [
"sudo mv /tmp/docker-worker-priv.pem /etc/",
"sudo mv /tmp/star_taskcluster* /etc/",
"sudo chown root:root /etc/docker-worker-priv.pem",
"sudo chown root:root /etc/star_taskcluster*",
"sudo chmod 600 /etc/docker-worker-priv.pem",
"sudo chmod 600 /etc/star_taskcluster*"
]
},
{
"type": "shell",
"environment_vars": ["PAPERTRAIL={{user `papertrail`}}"],
"scripts": [
"deploy/packer/base/scripts/configure_syslog.sh",
"deploy/packer/base/scripts/packages.sh",
"deploy/packer/base/scripts/node.sh"
]
},
{
"type": "shell",
"inline": ["sudo unattended-upgrade"]
},
{
"type": "shell",
"inline": [
"sudo bash -c 'echo net.ipv4.tcp_challenge_ack_limit = 999999999 >> /etc/sysctl.conf'"
]
}
],
"builders": [
{
"type": "amazon-ebs",
"name": "hvm-builder",
"region": "us-west-2",
"source_ami": "ami-5189a661",
"ami_virtualization_type": "hvm",
"instance_type": "m3.large",
"ssh_username": "ubuntu",
"ami_name": "taskcluster-docker-worker-base {{timestamp}}",
"tags": {
"OS_Version": "Ubuntu",
"Release": "Latest",
"Revision": "{{user `workerRevision`}}"
}
},
{
"type": "amazon-ebs",
"name": "pv-builder",
"region": "us-west-2",
"source_ami": "ami-7f89a64f",
"ami_virtualization_type": "paravirtual",
"instance_type": "m1.medium",
"ssh_username": "ubuntu",
"ami_name": "taskcluster-docker-worker-base PV {{timestamp}}",
"tags": {
"OS_Version": "Ubuntu",
"Release": "Latest",
"Revision": "{{user `workerRevision`}}"
}
}
]
}