vagrant: Add parallels as a provider.

There are file sharing issues with the macOS 10.15.6 and
vagrant. var/remote_cache_prefix was an empty file when using
VirtualBox and Docker on macOS.
Using parallels as a provider for vagrant fixes the issue.

Use --watch-poll which makes webpack to recompile
automatically on file changes, since inotify is not
working here too.
This commit is contained in:
Aman
2020-08-11 10:53:39 +05:30
committed by Tim Abbott
parent 5c6d42c6a5
commit 88821b960a
3 changed files with 11 additions and 2 deletions

7
Vagrantfile vendored
View File

@@ -120,6 +120,13 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
vb.cpus = vm_num_cpus vb.cpus = vm_num_cpus
end end
config.vm.provider "parallels" do |prl, override|
override.vm.box = "bento/ubuntu-18.04"
override.vm.box_version = "202005.21.0"
prl.memory = vm_memory
prl.cpus = vm_num_cpus
end
$provision_script = <<SCRIPT $provision_script = <<SCRIPT
set -x set -x
set -e set -e

View File

@@ -85,7 +85,8 @@ Jump to:
(For a non-free option, but better performance, you can also use [VMWare (For a non-free option, but better performance, you can also use [VMWare
Fusion][vmware-fusion-dl] with the [VMWare Fusion Vagrant Fusion][vmware-fusion-dl] with the [VMWare Fusion Vagrant
plugin][vagrant-vmware-fusion-dl].) plugin][vagrant-vmware-fusion-dl] or [Parallels Desktop][parallels-desktop-dl] as
a provider for Vagrant.)
Now you are ready for [Step 2: Get Zulip code](#step-2-get-zulip-code). Now you are ready for [Step 2: Get Zulip code](#step-2-get-zulip-code).
@@ -1026,6 +1027,7 @@ remove the `GUEST_CPUS` and `GUEST_MEMORY_MB` lines from
[vbox-dl]: https://www.virtualbox.org/wiki/Downloads [vbox-dl]: https://www.virtualbox.org/wiki/Downloads
[vmware-fusion-dl]: https://www.vmware.com/products/fusion.html [vmware-fusion-dl]: https://www.vmware.com/products/fusion.html
[vagrant-vmware-fusion-dl]: https://www.vagrantup.com/vmware/ [vagrant-vmware-fusion-dl]: https://www.vagrantup.com/vmware/
[parallels-desktop-dl]: https://www.parallels.com/products/desktop/
[install-advanced]: ../development/setup-advanced.md [install-advanced]: ../development/setup-advanced.md
[rtd-git-guide]: ../git/index.md [rtd-git-guide]: ../git/index.md
[rtd-testing]: ../testing/testing.md [rtd-testing]: ../testing/testing.md

View File

@@ -53,7 +53,7 @@ def build_for_dev_server(host: str, port: str, minify: bool, disable_host_check:
for line in mounts: for line in mounts:
fields = line.split() fields = line.split()
if fields[1] == cwd: if fields[1] == cwd:
inotify_broken = fields[2] in ["nfs", "vboxsf"] inotify_broken = fields[2] in ["nfs", "vboxsf", "prl_fs"]
if inotify_broken: if inotify_broken:
webpack_args.append('--watch-poll=1000') webpack_args.append('--watch-poll=1000')