onnimonni / docker-unison

Lightweight Docker unison server based on alpine linux for file synchronization
GNU General Public License v3.0
63 stars 27 forks source link

Why not using unison only in docker #21

Open obriat opened 5 years ago

obriat commented 5 years ago

Why using a client/server between the host and docker ? Unison could be launched inside the docker, synchronising an host mounted volume with your code and the internal app folder, or am I missing something ?

onnimonni commented 5 years ago

This was for a period of time where direct host mounted volumes were extremely slow in MacOS.

I currently recommend using the :cached flag for mounted volumes in OSX so the Unison is not needed at all. You can read more about the flag over here: https://docs.docker.com/docker-for-mac/osxfs-caching/

scytacki commented 5 years ago

I haven't tried cached in a few months, but it was still too slow for us the last time I tried.

@obriat if I understand your comment right, it sounds like you are talking about what I did with this project: https://github.com/concord-consortium/docker-volume-sync