packer-cn/builder/azure/examples/freebsd-chroot.json

27 lines
715 B
JSON
Raw Normal View History

2020-08-08 21:06:05 -04:00
{
"variables": {},
"builders": [
{
"type": "azure-chroot",
"source": "thefreebsdfoundation:freebsd-12_1:12_1-release:latest",
"image_resource_id": "/subscriptions/{{vm `subscription_id`}}/resourceGroups/{{vm `resource_group`}}/providers/Microsoft.Compute/images/freebsd-{{timestamp}}",
"os_disk_size_gb": 64,
"os_disk_storage_account_type": "Premium_LRS",
"mount_partition": 2,
"chroot_mounts": [
["devfs", "devfs", "/dev"],
["procfs", "procfs", "/proc"]
]
}
],
"provisioners": [
{
"inline": [
2020-08-08 21:44:39 -04:00
"env ASSUME_ALWAYS_YES=YES pkg bootstrap"
2020-08-08 21:06:05 -04:00
],
"inline_shebang": "/bin/sh -x",
"type": "shell"
}
]
}