forked from Capgemini/Apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubuntu-14.04_amd64-google.json
70 lines (70 loc) · 2.16 KB
/
ubuntu-14.04_amd64-google.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
{
"variables": {
"account_file": "{{env `GCS_ACCOUNT_FILE`}}",
"project_id": "{{env `GCS_PROJECT_ID`}}",
"mesos_version": "0.22.0-1.0.ubuntu1404",
"marathon_version": "0.8.1-1.0.171.ubuntu1404",
"consul_version": "0.5.0",
"weave_version": "v0.10.0"
},
"builders": [{
"type": "googlecompute",
"image_name": "apollo-mesos-ubuntu-14.04-amd64",
"image_description": "Ubuntu 14.04 LTS, Meosos {{user `mesos_version`}}, Docker, Marathon, Consul {{user `consul_version`}}, Weave {{user `weave_version`}}, and Zookeeper.",
"ssh_username": "ubuntu",
"ssh_timeout": "10m",
"account_file": "{{user `account_file`}}",
"project_id": "{{user `project_id`}}",
"source_image": "ubuntu-1404-trusty-v20150316",
"zone": "europe-west1-b"
}],
"provisioners": [
{
"type": "file",
"source": "scripts/ubuntu/upstart/",
"destination": "/tmp"
},
{
"type": "shell",
"environment_vars": [
"CONSUL_VERSION={{user `consul_version`}}",
"WEAVE_VERSION={{user `weave_version`}}",
"MESOS_VERSION={{user `mesos_version`}}",
"MARATHON_VERSION={{user `marathon_version`}}"
],
"scripts": [
"scripts/ubuntu/base.sh",
"scripts/common/sshd.sh",
"scripts/ubuntu/install_docker.sh",
"scripts/ubuntu/install_mesos.sh",
"scripts/ubuntu/install_marathon.sh",
"scripts/common/install_consul.sh",
"scripts/ubuntu/install_dnsmasq.sh",
"scripts/common/install_weave.sh"
],
"execute_command": "{{ .Vars }} sudo -E -S bash -c '{{ .Path }}'"
},
{
"type": "file",
"source": "tests",
"destination": "/tmp"
},
{
"type": "shell",
"script": "scripts/common/serverspec.sh",
"execute_command": "{{ .Vars }} sudo -E -S bash -c '{{ .Path }}'"
}
],
"push": {
"name": "capgemini/apollo-mesos-ubuntu-14-04-amd64"
},
"post-processors": [{
"type": "atlas",
"artifact": "capgemini/apollo-mesos-ubuntu-14.04-amd64",
"artifact_type": "googlecompute.image",
"metadata": {
"created_at": "{{timestamp}}",
"version": "{{user `version`}}"
}
}]
}