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.