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

Solution for monitoring file changes over NFS #67

Open
quinncomendant opened this issue Mar 1, 2016 · 4 comments
Open

Solution for monitoring file changes over NFS #67

quinncomendant opened this issue Mar 1, 2016 · 4 comments

Comments

@quinncomendant
Copy link

I've discovered build tools such as fsmonitor and browser-sync use inotify to watch for changes. inotify doesn't work over NFS [1] [2]. NFS in corectl-managed docker containers otherwise works great—reliable and performs well. Is there any way to modify how NFS with corectl to allow for monitoring file changes? Any other ides? (I know this isn't really corectl-related, but I thought I could start here.)

@rimusz
Copy link
Member

rimusz commented Mar 1, 2016

@quinncomendant it is more @AntonioMeireles end.
Would you mind to tell me which OS you use in docker container to run NFS, is that only the client?
As I having problems with NFS client on latest Ubuntu/Debian based docker images.

@quinncomendant
Copy link
Author

I've based my image on node:slim which is based on buildpack-deps:jessie-curl (i.e., Debian). My buildtools Dockerfile:

FROM node:slim
RUN npm install -g autoprefixer browser-sync fsmonitor jshint jslint node-sass nsp parallelshell postcss-cli uglify-js
WORKDIR /src
ENTRYPOINT ["npm"]
CMD ["start"]

Then the developer will mount their project source from the host-mounted NFS volume with docker run -v /Users/username/project/src:/src buildtools (or the Compose file equivalent).

This is essentially a problem with inotify not working over NFS. I've submitted a more elaborated question to stackoverflow.

@rimusz
Copy link
Member

rimusz commented Mar 1, 2016

I'm having a bit different issue, cannot mount NFS volumes from the inside container

@so0k
Copy link

so0k commented Jun 6, 2016

The open sourced docker: HyperKit / DataKit & VPNKit should provide ways to fix this, isn't it? using the osxfs they developed?

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

No branches or pull requests

3 participants