You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-5Lines changed: 32 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,7 @@ LaraDock is configured to run Laravel Apps by default, and it can be modified to
96
96
- [PHPStorm Debugging Guide](#phpstorm-debugging)
97
97
- [Keep track of your LaraDock changes](#keep-tracking-LaraDock)
98
98
- [Upgrading LaraDock](#upgrading-laradock)
99
+
- [Improve speed on MacOS](#Speed-MacOS)
99
100
- [Common Problems](#Common-Problems)
100
101
-[Related Projects](#related-projects)
101
102
-[Help & Questions](#Help)
@@ -377,10 +378,6 @@ Do the same for each project `project2.conf`, `project3.conf`,...
377
378
7 - Create your project Databases. Right now you have to do it manually by entering your DB container, until we automate it soon.
378
379
379
380
380
-
381
-
382
-
383
-
384
381
<a name="Usage"></a>
385
382
## Usage
386
383
@@ -1755,8 +1752,38 @@ Moving from Docker Toolbox (VirtualBox) to Docker Native (for Mac/Windows). Requ
1755
1752
"Warning Containers Data might be lost!"
1756
1753
1757
1754
1755
+
<a name="Speed-MacOS"></a>
1756
+
### Improve speed on MacOS
1757
+
1758
+
Sharing code into Docker containers with osxfs have very poor performance compared to Linux. You can get around this issue by using NFS to share your files betwen your host and your container.
1759
+
1760
+
#### How to share files using NFS (d4m-nfs)
1761
+
1762
+
[d4m-nfs](https://github.com/IFSight/d4m-nfs) automatically mount NFS volume instead of osxfs one.
1763
+
1764
+
1. Update docker File Sharing preferences. You should have only /tmp.
1765
+
2. Restart docker.
1766
+
3. Clone d4m-nfs repository in your home directory
4. Edit/create the file ~/d4m-nfs/etc/d4m-nfs-mounts.txt with this configuration:
1771
+
```
1772
+
/Users:/Users
1773
+
/Volumes:/Volumes
1774
+
/private:/private
1775
+
```
1776
+
5. Empty the file /etc/exports and clean it up if required (there may be collisions if you come from Vagrant or if you already executed the d4m-nfs.sh script)
1777
+
6. Run the d4m-nfs.sh script
1778
+
```bash
1779
+
~/d4m-nfs/d4m-nfs.sh
1780
+
```
1781
+
1782
+
That's it! Now you just have to bring your container up with docker compose. For example:
0 commit comments