mirror of
https://github.com/frappe/bench.git
synced 2024-11-13 16:56:33 +00:00
357d497e55
This is being added to restart supervisor inside the virtual machine on boot, since the command 'bench update' breaks on boot, since the supervisor is not active. This is a bug in debian, which has been propogated to ubuntu, and this piece of code can be removed when the bug is fixed.
98 lines
3.5 KiB
JSON
98 lines
3.5 KiB
JSON
{
|
|
"builders": [{
|
|
"vm_name": "ERPNext-Production-{{isotime \"20060102150405\"}}",
|
|
"output_directory": "Production Builds",
|
|
"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",
|
|
"format": "ova",
|
|
"guest_os_type": "Ubuntu_64",
|
|
"headless": true,
|
|
"iso_url": "http://releases.ubuntu.com/16.04/ubuntu-16.04.4-server-amd64.iso",
|
|
"iso_checksum": "6a7f31eb125a0b2908cf2333d7777c82",
|
|
"iso_checksum_type": "md5",
|
|
"ssh_username": "frappe",
|
|
"ssh_password": "frappe",
|
|
"ssh_port": 22,
|
|
"ssh_wait_timeout": "10000s",
|
|
"http_directory": "http",
|
|
"guest_additions_mode": "disable",
|
|
"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",
|
|
"vboxmanage": [
|
|
[ "modifyvm", "{{.Name}}", "--memory", "1024" ],
|
|
[ "modifyvm", "{{.Name}}", "--cpus", "1" ],
|
|
[ "modifyvm", "{{.Name}}", "--audio", "none" ],
|
|
[ "modifyvm", "{{.Name}}", "--natpf1", "vm_ssh,tcp,,3022,,22" ],
|
|
[ "modifyvm", "{{.Name}}", "--natpf1", "vm_http,tcp,,8080,,80" ]
|
|
]
|
|
}],
|
|
"provisioners": [{
|
|
"type": "shell",
|
|
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
|
"script": "scripts/debian_family/install_ansible.sh"
|
|
}, {
|
|
"type": "shell",
|
|
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
|
"script": "scripts/debian_family/setup.sh"
|
|
}, {
|
|
"type": "shell",
|
|
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
|
"script": "scripts/debian_family/install_erpnext_production.sh"
|
|
}, {
|
|
"type": "shell",
|
|
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
|
"script": "scripts/debian_family/cleanup.sh"
|
|
}, {
|
|
"type": "shell",
|
|
"script": "scripts/set_message.sh"
|
|
}, {
|
|
"type": "shell",
|
|
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
|
"script": "scripts/restart_supervisor.sh"
|
|
}],
|
|
"post-processors": [{
|
|
"type": "checksum",
|
|
"checksum_types": ["md5", "sha256", "sha512"]
|
|
}, {
|
|
"type": "vagrant",
|
|
"keep_input_artifact": true,
|
|
"output": "Production Builds/ERPNext-Vagrant-Production-{{isotime \"20060102150405\"}}.box",
|
|
"vagrantfile_template": "Vagrantfile"
|
|
}]
|
|
}
|