Hacker News new | ask | show | jobs
by zkanda 4113 days ago
I'm really looking forward to this book. Question, how do you deal with users outside of Linux host regarding shared folders. I'm using boot2docker, but it's painfully slow if my code base is large(10kloc).
3 comments

Are you doing a COPY to get it all in? Another thing you can try is to use a builder image, where you mount your source in as a volume (ie don't copy), and that build image makes a new Dockerfile+binary that you can build into a much smaller image for deploying.

I wrote a bit about this process here: http://gowithconfidence.tumblr.com/post/112715890281/vendori...

This is exactly what I'm looking for. Thanks. :)
I'm not sure I properly understand you, but we look at using sshfs for mounting local folders directly into the container.

It's a neat hack that bypasses a lot of setup with NFS or other shared folder tools, assuming you have an ssh setup in place. Needless to say, we used it at work.