Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use native nfs volumes instead of docker sync #4

Merged
merged 2 commits into from
Apr 28, 2018

Conversation

acrobat
Copy link
Member

@acrobat acrobat commented Apr 16, 2018

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:

  • Run spaceport setup-nfs (only 1 time to setup the correct settings)
  • Run spaceport start in a project (all the other settings get setup automatically)

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 conflicts

TODO:

  • Make sure /etc/exports paths don't overlap (manual check)
  • Setup nfs command recheck
  • Check if /etc/exports file exists No problem as the command will pipe the info into the file or create it when it doesn't exist
  • spaceport start prints "error", but continues (empty /etc/exports or specific line not found by grep check?) Fixed by running the grep commands in quite mode
  • Docker restart during startup can timeout if it takes 60 sec or longer. So move the restart to async and let the while look check?
  • Check if exports path's don't overlap. If so don't add the path to exports (project with a docker project in vendor)
  • Modify npm container config to also use nfsmount instead of old/remove docker-sync app mount

@acrobat acrobat force-pushed the docker-nfs branch 3 times, most recently from 3acac60 to e6a29cb Compare April 23, 2018 11:18
@jockri jockri merged commit bab0963 into Kunstmaan:master Apr 28, 2018
@acrobat acrobat deleted the docker-nfs branch June 10, 2018 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants