Skip to content

Instantly share code, notes, and snippets.

@Leen15
Created November 17, 2017 20:21
Show Gist options
  • Save Leen15/0a7120672d4c52c19833eacab2182ce5 to your computer and use it in GitHub Desktop.
Save Leen15/0a7120672d4c52c19833eacab2182ce5 to your computer and use it in GitHub Desktop.

Mac users

Docker for Mac is extremely slow on OSX. Mounting the volume with NFS will incredibly speed up everything.

Clone the IFSight/d4m-nfs repo in your sites folder:

cd ~/Sites/
git clone https://github.com/IFSight/d4m-nfs

Edit the available mounts:

nano d4m-nfs/etc/d4m-nfs-mounts.txt

And add one line for each dir you want to mount, for example:

/Users:/Users:0:0

Enter Preferences of Docker for Mac, go to File Sharing, remove all the folders listed except tmp and then hit Apply & Restart.

Finally, before running docker-compose up launch:

~/Sites/d4m-nfs/d4m-nfs.sh

Note: once the d4m-nfs.sh service is started, you don't need to run it again before running a docker-compose up -d command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment