brikis98 / docker-osx-dev

A productive development environment with Docker on OS X
http://www.ybrikman.com/writing/2015/05/19/docker-osx-dev/
MIT License
1.43k stars 106 forks source link

Support for ignored path/pattern in vm #172

Closed otbe closed 8 years ago

otbe commented 8 years ago

Hi everybody,

is there any possibility to add paths or patterns that will be ignored by rsync on the container side? $ docker-osx-dev -i or -e did not work for me, because the folder to ignore is not on source side.

Why? Im doing the following things:

This works as expected, but Im seeing some errors in the output of docker-osx-dev

2016-02-15 18:14:37 [INFO] rsync: delete_file: unlink(app/dist/<filePath>) failed: Permission denied (13)

This is because the dist/ folder is not within my local web app folder, so rsync tries to delete it within the container/vm. This fails because of some permission problems. Any opinions?

Thank you.

brikis98 commented 8 years ago

Can you provide more detail on why -i or -e don't work for you?

otbe commented 8 years ago

Shame on me. For simple use I passed .gitignore to -e. The entries within my .gitignore were messed up a litte bit. For example /dist/ instead of dist/.

Works like expected. Thank you

brikis98 commented 8 years ago

Good to hear.