-
-
Notifications
You must be signed in to change notification settings - Fork 223
Expand file tree
/
Copy pathgcp-image.json
More file actions
51 lines (51 loc) · 1.29 KB
/
gcp-image.json
File metadata and controls
51 lines (51 loc) · 1.29 KB
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
{
"variables": {
"build_prefix": "",
"docker_version": "",
"image_repo": "",
"image_version": ""
},
"builders": [
{
"type": "googlecompute",
"project_id": "dstack",
"source_image": "ubuntu-2404-noble-amd64-v20250828",
"image_name": "{{user `build_prefix`}}dstack-{{user `image_version` | clean_resource_name}}",
"instance_name": "{{user `build_prefix`}}dstack-{{user `image_version` | clean_resource_name}}",
"ssh_username": "ubuntu",
"zone": "us-central1-a"
}
],
"provisioners": [
{
"type": "shell",
"inline": ["cloud-init status --long --wait"]
},
{
"type": "shell",
"scripts": [
"provisioners/kernel/apt-upgrade.sh",
"provisioners/kernel/apt-daily.sh",
"provisioners/kernel/apt-packages.sh",
"provisioners/kernel/kernel-tuning.sh"
]
},
{
"type": "file",
"source": "provisioners/install-docker.sh",
"destination": "/tmp/install-docker.sh"
},
{
"type": "file",
"source": "provisioners/run-docker",
"destination": "/tmp/run-docker"
},
{
"type": "shell",
"inline": [
"cd /tmp",
"chmod +x install-docker.sh",
"./install-docker.sh --version {{user `docker_version`}}"]
}
]
}