EugenMayer / docker-sync

Run your application at full speed while syncing your code for development, finally empowering you to utilize docker for development under OSX/Windows/*Linux
GNU General Public License v3.0
3.53k stars 289 forks source link

native_osx doesn't sync after initial cp #374

Closed sandrodz closed 7 years ago

sandrodz commented 7 years ago

Just updated, lost all syncing abilities, what am I doing wrong?

Error/Feature Requestion/Docs

Files are not being synced after initial sync

Docker Driver

d4m

Sync strategy

native_osx

your docker-sync.yml

version: "2"

options:
  verbose: false
syncs:
  docker-sync:
    notify_terminal: true
    src: '/Users/sandro/Code/www'
    sync_userid: '82'
    sync_excludes: ['node_modules', '.git', '.gitignore', '.DS_Store', '.unison*']
    sync_args:
      - "-ignore='Path vendor/*'"

your docker-compose-dev.yml

#
version: '2'
#
services:
  #
  php5-fpm:
    volumes:
      - docker-sync:/www:nocopy
  php7-fpm:
    volumes:
      - docker-sync:/www:nocopy
  #
  nginx:
    volumes:
      - docker-sync:/www:nocopy
#
volumes:
  docker-sync:
    external: true

OS

10.12.4 (16E195)

EugenMayer commented 7 years ago

i cannot reproduce this at all. Please also try with https://github.com/EugenMayer/docker-sync-boilerplate/tree/master/default_with_user

also upgrade to the new beta

gem uninstall docker-sync
gem install docker-sync --version 0.4.4.beta1
beshkenadze commented 7 years ago

Same here.

EugenMayer commented 7 years ago

@beshkenadze upgrade to 0.4.4 and open a new issue with informations you gathered thanks

sandrodz commented 7 years ago

0.4.4 beta didn't work for me. I give up. Going to use docker inside centos7 vagrant. Honestly all this is not worth the time anymore.

EugenMayer commented 7 years ago

@sandrodz considering the https://github.com/EugenMayer/docker-sync/wiki/Performance-Tests-2017 virtualbox docker-machine benchmarks, you at least picked the best native implementation, vbox is 4x faster then fusion and 7x faster then d4m ( stable )

and only 12 times slower then docker-sync unison - if that matters.

If you found a solution for yourself, those are great news!

beshkenadze commented 7 years ago

@EugenMayer I think this issue should be reopened since I have the same error.

EugenMayer commented 7 years ago

@beshkenadze please provide the informations i asked for in a separate issue. You are using totally different versions.

sandrodz commented 7 years ago

@EugenMayer I use vim, so just ssh into vagrant and work from there, with just initial sync on vagrant up and sync back on vagrant down. This way I've native speeds.

EugenMayer commented 7 years ago

@sandrodz sure, that works and makes sense for you then

sandrodz commented 7 years ago

@EugenMayer in any case, thanks for your work, it has been my workhorse for almost a year now.

EugenMayer commented 7 years ago

@sandrodz your welcome. Dealing with vim alone as a dev tool makes you have skills most of us lack or some have higher needs in IDE support.

If anybody can work locally in the VM, your solution is by far the best - i guess this will be a minority but still, a nice sweet spot :)