2015-12-24 00:25:55 +00:00
|
|
|
{
|
2018-03-05 07:46:34 +00:00
|
|
|
"builders": [{
|
2018-03-08 14:35:38 +00:00
|
|
|
"vm_name": "ERPNext-Develop-{{isotime \"20060102150405\"}}",
|
2018-03-18 14:43:30 +00:00
|
|
|
"output_directory": "Developer Builds",
|
2018-03-05 07:46:34 +00:00
|
|
|
"type": "virtualbox-iso",
|
|
|
|
"boot_command": [
|
|
|
|
"<enter><wait><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
|
|
|
|
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
|
|
|
|
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
|
|
|
|
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
|
|
|
|
"/install/vmlinuz<wait>",
|
|
|
|
" auto<wait>",
|
|
|
|
" console-setup/ask_detect=false<wait>",
|
|
|
|
" console-setup/layoutcode=us<wait>",
|
|
|
|
" console-setup/modelcode=pc105<wait>",
|
|
|
|
" debconf/frontend=noninteractive<wait>",
|
|
|
|
" debian-installer=en_US<wait>",
|
|
|
|
" fb=false<wait>",
|
|
|
|
" initrd=/install/initrd.gz<wait>",
|
|
|
|
" kbd-chooser/method=us<wait>",
|
|
|
|
" keyboard-configuration/layout=USA<wait>",
|
|
|
|
" keyboard-configuration/variant=USA<wait>",
|
|
|
|
" locale=en_US<wait>",
|
|
|
|
" netcfg/get_domain=vm<wait>",
|
|
|
|
" netcfg/get_hostname=ubuntu<wait>",
|
|
|
|
" grub-installer/bootdev=/dev/sda<wait>",
|
|
|
|
" noapic<wait>",
|
|
|
|
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
|
|
|
|
" -- <wait>",
|
|
|
|
"<enter><wait>"
|
|
|
|
],
|
|
|
|
"boot_wait": "10s",
|
2015-12-24 00:25:55 +00:00
|
|
|
"format": "ova",
|
2018-03-05 07:46:34 +00:00
|
|
|
"guest_os_type": "Ubuntu_64",
|
2015-12-24 00:25:55 +00:00
|
|
|
"headless": true,
|
2018-03-05 07:46:34 +00:00
|
|
|
"iso_url": "http://releases.ubuntu.com/16.04/ubuntu-16.04.4-server-amd64.iso",
|
|
|
|
"iso_checksum": "6a7f31eb125a0b2908cf2333d7777c82",
|
|
|
|
"iso_checksum_type": "md5",
|
2015-12-24 00:25:55 +00:00
|
|
|
"ssh_username": "frappe",
|
|
|
|
"ssh_password": "frappe",
|
2018-03-05 07:46:34 +00:00
|
|
|
"ssh_port": 22,
|
|
|
|
"ssh_wait_timeout": "10000s",
|
|
|
|
"http_directory": "http",
|
2015-12-24 00:25:55 +00:00
|
|
|
"guest_additions_mode": "disable",
|
2018-03-05 07:46:34 +00:00
|
|
|
"virtualbox_version_file": ".vbox_version",
|
|
|
|
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
|
|
|
|
"export_opts": [
|
|
|
|
"--vsys", "0",
|
|
|
|
"--product", "ERPNext",
|
|
|
|
"--producturl", "https://erpnext.com",
|
|
|
|
"--vendor", "Frappe Techonologies",
|
|
|
|
"--vendorurl", "https://frappe.io",
|
|
|
|
"--description", "ERPNext Evaluation VM"
|
|
|
|
],
|
|
|
|
"shutdown_command": "echo 'frappe'|sudo -S shutdown -P now",
|
2015-12-24 00:25:55 +00:00
|
|
|
"vboxmanage": [
|
2018-03-05 07:46:34 +00:00
|
|
|
[ "modifyvm", "{{.Name}}", "--memory", "1024" ],
|
2015-12-24 00:25:55 +00:00
|
|
|
[ "modifyvm", "{{.Name}}", "--cpus", "1" ],
|
2018-03-05 07:46:34 +00:00
|
|
|
[ "modifyvm", "{{.Name}}", "--audio", "none" ],
|
2015-12-24 00:25:55 +00:00
|
|
|
[ "modifyvm", "{{.Name}}", "--natpf1", "vm_ssh,tcp,,3022,,22" ],
|
2018-03-26 11:55:54 +00:00
|
|
|
[ "modifyvm", "{{.Name}}", "--natpf1", "vm_http,tcp,,8080,,80" ],
|
|
|
|
[ "modifyvm", "{{.Name}}", "--natpf1", "vm_http2,tcp,,8000,,8000" ]
|
2015-12-24 00:25:55 +00:00
|
|
|
]
|
2018-03-05 07:46:34 +00:00
|
|
|
}],
|
2015-12-24 00:25:55 +00:00
|
|
|
"provisioners": [{
|
|
|
|
"type": "shell",
|
2018-03-05 07:46:34 +00:00
|
|
|
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
|
|
|
"script": "scripts/debian_family/install_ansible.sh"
|
2015-12-24 00:25:55 +00:00
|
|
|
}, {
|
2018-03-05 07:46:34 +00:00
|
|
|
"type": "shell",
|
|
|
|
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
|
|
|
"script": "scripts/debian_family/setup.sh"
|
2015-12-24 00:25:55 +00:00
|
|
|
}, {
|
|
|
|
"type": "shell",
|
2018-03-05 07:46:34 +00:00
|
|
|
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
2018-03-08 14:35:38 +00:00
|
|
|
"script": "scripts/debian_family/install_erpnext_develop.sh"
|
2018-03-05 07:46:34 +00:00
|
|
|
}, {
|
|
|
|
"type": "shell",
|
|
|
|
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
|
|
|
"script": "scripts/debian_family/cleanup.sh"
|
2015-12-24 00:25:55 +00:00
|
|
|
}, {
|
|
|
|
"type": "shell",
|
2018-03-31 18:40:31 +00:00
|
|
|
"script": "scripts/set_message_develop.sh"
|
2018-03-22 09:51:50 +00:00
|
|
|
}, {
|
|
|
|
"type": "shell",
|
|
|
|
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
|
|
|
"script": "scripts/restart_supervisor.sh"
|
2018-03-08 14:35:38 +00:00
|
|
|
}],
|
|
|
|
"post-processors": [{
|
|
|
|
"type": "checksum",
|
2018-03-31 18:07:40 +00:00
|
|
|
"checksum_types": ["md5"]
|
2018-03-08 14:35:38 +00:00
|
|
|
}, {
|
|
|
|
"type": "vagrant",
|
|
|
|
"keep_input_artifact": true,
|
2018-03-18 14:43:30 +00:00
|
|
|
"output": "Developer Builds/ERPNext-Vagrant-Develop-{{isotime \"20060102150405\"}}.box",
|
2018-03-08 14:35:38 +00:00
|
|
|
"vagrantfile_template": "Vagrantfile"
|
2015-12-24 00:25:55 +00:00
|
|
|
}]
|
|
|
|
}
|