Closed cameronmaske closed 8 years ago
Hey @cameronmaske,
This is definitely a good approach. I don't have any objections besides the duplication in the readme.
@tonivdv Good spot on the README! That should be resolved. Tested this locally and it works a charm. Let me know if there are any other outstanding issues.
I tested it and it works like a charm ;)
I would simply add a (debug) echo message to show the mount options it will apply at line https://github.com/cameronmaske/docker-machine-nfs/blob/mount-options/docker-machine-nfs.sh#L196
And regarding the var name 'mount-options'. I tend to prefer 'mount-opts' ... but it's a matter of taste. What do you think?
Works for me guys! Thanks for adding, I was looking for this.
@tonivdv Renamed it to mount-opts and added the debug message.
sh docker-machine-nfs.sh dev --mount-opts="noacl,async,nolock,vers=3,udp,noatime,actimeo=1" --shared-folder="/Users/cameronmaske/Development/repos"
[INFO] Configuration:
- Machine Name: dev
- Shared Folder: /Users/cameronmaske/Development/repos
- Mount Options: noacl,async,nolock,vers=3,udp,noatime,actimeo=1
- Force: false
[INFO] machine presence ... OK
[INFO] machine running ... OK
[INFO] Lookup mandatory properties ... OK
- Machine IP: 192.168.99.100
- Network ID: vboxnet9
- NFSHost IP: 192.168.99.1
[INFO] Configure NFS ...
!!! Sudo will be necessary for editing /etc/exports !!!
Password:
OK
[INFO] Configure Docker Machine ... OK
[INFO] Restart Docker Machine ... OK
[INFO] Verify NFS mount ... OK
--------------------------------------------
The docker-machine 'dev'
is now mounted with NFS!
ENJOY high speed mounts :D
--------------------------------------------
Many thanks for the contribution @cameronmaske
Related issues #6 and #38
Need to run some tests to verify this operates correctly, but wanted to gauge if this functionality you would be willing to accept and if so, does the naming scheme make sense?