Use native nfs volumes instead of docker sync #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See https://medium.com/@sean.handley/how-to-set-up-docker-for-mac-with-native-nfs-145151458adc
To get it up and running you should do the following:
I will provide another PR with a diagnose command to provide a command to debug a problem (missing nfsd, incorrect settings, etc)
The blogpost does a setup so nfs mounts the root project directory /Users. But this messes things up on some occasions, so I did the setup the same a vagrant by creating a
/etc/exports
entry for each project path. This will avoid any conflictsTODO:
/etc/exports
paths don't overlap (manual check)Check ifNo problem as the command will pipe the info into the file or create it when it doesn't exist/etc/exports
file existsspaceport start prints "error", but continues (emptyFixed by running the grep commands in quite mode/etc/exports
or specific line not found by grep check?)