This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
forked from mitchellh/boot2docker-vagrant-box
-
Notifications
You must be signed in to change notification settings - Fork 32
/
template.json
74 lines (74 loc) · 2.26 KB
/
template.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"push": {
"name": "dduportal/boot2docker"
},
"variables": {
"B2D_ISO_FILE": "boot2docker.iso",
"B2D_ISO_CHECKSUM": "7e231d3c33e08f08b604fdc9a557b64b"
},
"builders": [{
"type": "virtualbox-iso",
"vboxmanage": [
["modifyvm","{{.Name}}","--memory","1536"],
["modifyvm","{{.Name}}","--nictype1","virtio"]
],
"disk_size": "120000",
"iso_url": "{{user `B2D_ISO_FILE`}}",
"iso_checksum_type": "md5",
"iso_checksum": "{{user `B2D_ISO_CHECKSUM`}}",
"boot_wait": "5s",
"guest_additions_mode": "attach",
"guest_os_type": "Linux_64",
"ssh_username": "docker",
"ssh_password": "tcuser",
"shutdown_command": "sudo poweroff"
}, {
"type": "vmware-iso",
"vmx_data" : {
"memsize": "1536"
},
"disk_size": "120000",
"iso_url": "{{user `B2D_ISO_FILE`}}",
"iso_checksum_type": "md5",
"iso_checksum": "{{user `B2D_ISO_CHECKSUM`}}",
"boot_wait": "5s",
"guest_os_type": "other3xlinux-64",
"ssh_username": "docker",
"ssh_password": "tcuser",
"shutdown_command": "sudo poweroff"
}, {
"type": "parallels-iso",
"disk_size": "120000",
"iso_url": "{{user `B2D_ISO_FILE`}}",
"iso_checksum_type": "md5",
"iso_checksum": "{{user `B2D_ISO_CHECKSUM`}}",
"boot_wait": "5s",
"guest_os_type": "linux-2.6",
"ssh_username": "docker",
"ssh_password": "tcuser",
"shutdown_command": "sudo poweroff",
"parallels_tools_mode": "disable",
"prlctl": [
["set", "{{.Name}}", "--memsize", "1536"]
]
}],
"provisioners": [
{
"type": "file",
"source": "{{user `B2D_ISO_FILE`}}",
"destination": "/tmp/boot2docker-vagrant.iso"
},
{
"type": "shell",
"execute_command": "{{ .Vars }} sudo -E -S sh '{{ .Path }}'",
"scripts": [
"./scripts/b2d-provision.sh"
]
}
],
"post-processors": [{
"type": "vagrant",
"vagrantfile_template": "vagrantfile.tpl",
"output": "boot2docker_{{.Provider}}.box"
}]
}