Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to VirtioFS on Docker Desktop for macOS #41

Open
kdambekalns opened this issue Mar 28, 2022 · 3 comments
Open

Switch to VirtioFS on Docker Desktop for macOS #41

kdambekalns opened this issue Mar 28, 2022 · 3 comments
Labels
dx affects developer experience (experience) enhancement enhances an existing feature or functionality (improvements) task a task, not introducing new functionality (improvements)

Comments

@kdambekalns
Copy link
Member

kdambekalns commented Mar 28, 2022

With the VirtioFS the direct mounting is fast enough to be used! 🎉

image

This is needed to use this:

  • latest Docker (4.6.0+)
  • macOS 12.2+
  • enabled VirtioFS (currently experimental)
  • remove devkit with the file sync we have in place (or at least make it "switchable")
  • mount files directly

To get this to the users, we need to

  • adjust the shipped docker compose template
  • find a way to cleanly migrate existing .localbeach.docker-compose.yaml files
  • restart projects without data loss

Also, do we require a Docker version with (enabled) VvirtioFS support or make it a feature flag?

@kdambekalns kdambekalns added dx affects developer experience (experience) enhancement enhances an existing feature or functionality (improvements) task a task, not introducing new functionality (improvements) labels Mar 28, 2022
@kdambekalns
Copy link
Member Author

To use VirtioFS in a Local Beach project, adjust .localbeach.docker-compose.yaml as follows:

  • remove the devkit service definition
  • remove the application volume definition
  • replace the volumes section content on the webserver and php services with just - ./:/application
  • in the php service environment section, set BEACH_WAIT_FOR_SYNC=false

@robertlemke robertlemke transferred this issue from another repository Apr 1, 2022
@kdambekalns
Copy link
Member Author

Meanwhile VirtioFS is no longer experimental, delegated is a no-op, … this should progress at some point.

Only pitfall: it still seems slower than the old devkit-approach, at least for some. See neos/Neos.NeosIo#473

@kdambekalns
Copy link
Member Author

This has been (partly) addressed by #70, thanks to @ahaeslich!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dx affects developer experience (experience) enhancement enhances an existing feature or functionality (improvements) task a task, not introducing new functionality (improvements)
Projects
None yet
Development

No branches or pull requests

1 participant