Skip to content

Solution for monitoring file changes over NFS #67

Open

Description

@quinncomendant

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.)

Activity

  1. rimusz commented on Mar 1, 2016

    @rimusz
    Member

    @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.

  2. quinncomendant commented on Mar 1, 2016

    @quinncomendant
    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.

  3. rimusz commented on Mar 1, 2016

    @rimusz
    Member

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

  4. so0k commented on Jun 6, 2016

    @so0k

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions