-
-
Notifications
You must be signed in to change notification settings - Fork 223
Expand file tree
/
Copy pathoci-image.json
More file actions
56 lines (56 loc) · 1.55 KB
/
oci-image.json
File metadata and controls
56 lines (56 loc) · 1.55 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
52
53
54
55
56
{
"variables": {
"build_prefix": "",
"docker_version": "",
"image_repo": "",
"image_version": "",
"oci_availability_domain": "",
"oci_compartment_ocid": "",
"oci_subnet_ocid": ""
},
"builders": [
{
"type": "oracle-oci",
"availability_domain": "{{user `oci_availability_domain`}}",
"compartment_ocid": "{{user `oci_compartment_ocid`}}",
"subnet_ocid": "{{user `oci_subnet_ocid`}}",
"shape": "VM.Standard2.1",
"base_image_ocid": "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaahelib4o7g4fsjgck2lhxjmzonvbniwcmjjn2im4cxlksjgyzw5gq",
"image_name": "{{user `build_prefix`}}dstack-{{user `image_version`}}",
"instance_name": "packer-{{user `build_prefix`}}dstack-{{user `image_version`}}",
"ssh_username": "ubuntu"
}
],
"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`}}"]
}
]
}