packer-cn/test/fixtures/builder-hyperone/chroot.json

31 lines
863 B
JSON
Raw Normal View History

2019-02-09 23:15:22 -05:00
{
"variables": {
"token": null,
"project": null
},
"builders": [{
"token": "{{ user `token` }}",
"project": "{{ user `project` }}",
"type": "hyperone",
"source_image": "ubuntu",
"disk_size": 10,
"vm_type": "a1.nano",
"chroot_disk": true,
"chroot_command_wrapper": "sudo {{.Command}}",
"pre_mount_commands": [
"parted {{.Device}} mklabel msdos mkpart primary 1M 100% set 1 boot on print",
"mkfs.ext4 {{.Device}}1"
],
"post_mount_commands": [
"apt-get update",
"apt-get install debootstrap",
"debootstrap --arch amd64 bionic {{.MountPath}}"
],
"image_name": "packerbats-chroot-{{timestamp}}",
"image_tags": {
"key2":"value2"
}
2019-02-09 23:15:22 -05:00
}],
"provisioners": []
}