brikis98 / docker-osx-dev

A productive development environment with Docker on OS X

Home Page:http://www.ybrikman.com/writing/2015/05/19/docker-osx-dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for ignored path/pattern in vm

otbe opened this issue · comments

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:

  • start build-tool-contianer for web apps (folder of web app is a volume)
  • build web app (this step creates several folders...tmp, dist)
  • browser-sync reloads my local browser

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.

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

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

Good to hear.