Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

docs[#47776] Add docs/guides for Docker based development setup for MacOS

Kabiru Mwenjae70bb42df0b7
diff --git a/docs/development/development-environment-docker-macos/README.md b/docs/development/development-environment-docker-macos/README.md
new file mode 100644
index 00000000000..9bd4fce2e23
--- /dev/null
+++ b/docs/development/development-environment-docker-macos/README.md
@@ -0,0 +1,33 @@
+# OpenProject development setup via docker (MacOS)
+
+This guide covers observed nuances with the docker runtime on MacOS. Please ensure you've gone through the general [OpenProject development setup via docker](../development-environment-docker) guide before proceeding.
+
+## Docker on MacOS File System Performance
+
+Docker on Mac is [known to have file system performance issues](https://github.com/docker/roadmap/issues/7) due to the fact that Docker runs in a virtual machine on MacOS.
+Container operations are slower than they would be in a native Linux environment.
+
+As Docker runs in a virtual machine, a shared filesystem is needed and applications such as OpenProject with large number of files may experience performance drawbacks.
+
+[Switching to VirtioFS filesystem implementaion](https://www.docker.com/blog/speed-boost-achievement-unlocked-on-docker-desktop-4-6-for-mac/) can help improve the file system performance. Although Virtio FS is available on [Docker Desktop](https://docs.docker.com/desktop/install/mac-install/), [Orbstack + VirtioFS](https://orbstack.dev/) provides a more consistent experience in performance and resource usage; significantly less than docker desktop + VirtioFS. [According to OrbStack](https://docs.orbstack.dev/architecture#docker), the overall architecture is similar to Docker Desktop but more specialized and lightweight.
+
+The following is a benchmark performed on a _MacBook Pro, 2019 16 GB 2667 MHz DDR4 2.3 GHz 8-Core Intel Core i9_
+
+```sh
+$ time docker compose exec backend-test bundle exec rspec spec/models/work_package_spec.rb
+```
+
+| Runtime | Run1 | Run2|
+| -------- | ------- |-------|
+| Docker Desktop + gRPC FUSE (default) | 1m32s - Finished in 7.09 seconds (files took 1 minute 23.63 seconds to load) | 1m31s - Finished in 7.34 seconds (files took 1 minute 22.52 seconds to load)|
+| Docker Desktop + VirtioFS | 170.66 real - Finished in 12.04 seconds (files took 2 minutes 33.7 seconds to load) | 97.97 real - Finished in 15.22 seconds (files took 1 minute 16.85 seconds to load) |
+| Colima Qemu | 469.08 real - Finished in 19.25 seconds (files took 7 minutes 22 seconds to load) | 270.75 real - Finished in 17.05 seconds (files took 4 minutes 5.9 seconds to load) |
+| OrbStack + VirtioFS | 79.56 real - Finished in 7.74 seconds (files took 1 minute 9.49 seconds to load) | 41.04 real - Finished in 7.72 seconds (files took 31.7 seconds to load) |
+
+### Orbstack Installation
+
+_Ref Quick Start Guide [here](https://docs.orbstack.dev/quick-start)_
+
+```sh
+$ brew install orbstack
+```