Skip to content

Unison installation

roscopecoltran edited this page Jan 3, 2017 · 4 revisions

Crane can use Unison to make Docker for Mac sync files really fast. You will need unison and unison-fsmonitor on your system.

Installation

$ brew install unison

At the moment, version 2.48.4 is required. Check with unison -version. Additionally, you will need unox:

# This is dependency for unox
$ pip install MacFSEvents

# unox is unison-fsmonitor script for Mac
$ curl -o /usr/local/bin/unison-fsmonitor -L https://raw.githubusercontent.com/hnsl/unox/master/unox.py
$ chmod +x /usr/local/bin/unison-fsmonitor

Note

On Linux or MacOSX, you might have to

  • Add in your /etc/hosts <Docker IP> localhost
  • Get the IP address of your docker host:
$ docker-machine ip MACHINE_NAME
Clone this wiki locally