-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.json
42 lines (42 loc) · 1.09 KB
/
test.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
{
"variables": {
"img_mount_path": "/mnt/pimbatest",
"sha256_checksum": "",
"goss_version": "0.4.9"
},
"builders": [{
"type": "arm-image",
"iso_url" : "pimba.img",
"iso_checksum" : "{{ user `sha256_checksum` }}",
"image_type": "raspberrypi",
"target_image_size" : 5368709120,
"output_filename" : "/tmp/testimage",
"mount_path": "{{ user `img_mount_path` }}",
"disable_embedded": true,
"qemu_binary": "/usr/local/bin/qemu-aarch64-static"
}],
"provisioners": [
{
"type": "file",
"source": "goss",
"destination": "/tmp/"
},
{
"type": "shell",
"environment_vars": [
"LANG=C",
"LC_ALL=C"
],
"inline": [
"curl -Ls https://github.com/goss-org/goss/releases/download/v{{ user `goss_version` }}/goss-linux-arm64 -o /tmp/goss-linux-arm64 && chmod a+x /tmp/goss-linux-arm64",
"cd /tmp/goss && /tmp/goss-linux-arm64 validate --format documentation --color"
]
}
],
"post-processors": [{
"type": "shell-local",
"inline": [
"rm /tmp/testimage"
]
}]
}