forked from GoogleCloudPlatform/compute-image-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemacs_image.wf.json
57 lines (57 loc) · 1.62 KB
/
emacs_image.wf.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
{
"Name": "emacs-image",
"Sources": {
"emacs_install.sh": "./emacs_install.sh"
},
"Steps": {
"create-disks": {
"CreateDisks": [
{
"Name": "disk-install",
"SourceImage": "projects/centos-cloud/global/images/family/centos-7",
"Type": "pd-ssd"
}
]
},
"create-inst-install": {
"CreateInstances": [
{
"Name": "inst-install",
"Disks": [{"Source": "disk-install"}],
"MachineType": "n1-standard-1",
"StartupScript": "emacs_install.sh"
}
]
},
"wait-for-inst-install": {
"TimeOut": "1h",
"waitForInstancesSignal": [
{
"Name": "inst-install",
"Stopped": true
}
]
},
"create-image": {
"CreateImages": [
{
"Name": "centos-emacs",
"SourceDisk": "disk-install",
"NoCleanup": true,
"ExactName": true
}
]
},
"delete-inst-install": {
"DeleteResources": {
"Instances": ["inst-install"]
}
}
},
"Dependencies": {
"create-inst-install": ["create-disks"],
"wait-for-inst-install": ["create-inst-install"],
"create-image": ["wait-for-inst-install"],
"delete-inst-install": ["create-image"]
}
}