Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unison and unox are required even while using rsync #288

Closed
esolitos opened this issue Apr 7, 2017 · 6 comments · Fixed by #299
Closed

unison and unox are required even while using rsync #288

esolitos opened this issue Apr 7, 2017 · 6 comments · Fixed by #299

Comments

@esolitos
Copy link

esolitos commented Apr 7, 2017

Hello,
I was trying to use rsync as sync_strategy, but it seems that the check for the unison and unison-fsmonitor it is hardcoded and does not respect the sync_stragegy configuration?

I got the first error:

Could not find unison binary in path. Please install it, e.g. using "brew install unison"

...followed by:

warning Could not find unison-fsmonitor (for file watching) binary in $PATH. We try to install unox now (for manual instracutions see https://github.com/hnsl/unox.)
Shall I install unison-fsmonitor for you? (y/N) n
error Please install it, see https://github.com/hnsl/unox, or simply run :
curl "https://raw.githubusercontent.com/hnsl/unox/master/unox.py" -o "/usr/local/bin/unison-fsmonitor" && chmod +x /usr/local/bin/unison-fsmonitor

The only way to run docker-sync was to install both unison and unison-fsmonitor.
In my opinion if the rsync strategy is an accepted solution I don't see the reason why i would want to install unison if i'm not going to use it. :)

This is my docker-sync.yml file, if needed i can provide also docker-compose(-dev).yml files.

version: "2"
syncs:
  UNIQUENAME-htdocs-sync:
    src: './'
    dest: '/var/www/html'
    sync_host_ip: '127.0.0.1'
    sync_host_port: '10871'
    sync_userid: '82'
    sync_strategy: 'rsync'
    sync_excludes: ['docker-runtime/', ......]

@esolitos esolitos changed the title unison and unison-fsmonitor binary required even while using rsync unison and unox are required even while using rsync Apr 7, 2017
@EugenMayer
Copy link
Owner

got you on this, i think its just not as simple fixing this... But i am very interested in pull request

@ignatiusreza
Copy link
Contributor

It's also part of what I would like to do in #265.. if you're okay with it, I'll try to get the PR for refactoring configuration done and we can release that first, which should fix this issue.. and we can then have the PR for native volume and OS detection seperately..

@EugenMayer
Copy link
Owner

If you can split it out without making it a huge rewrite of different topic's, i would love to see that happen!

@EugenMayer
Copy link
Owner

Any progress here by any hopes? Planning to release the next version, asking myself if that one could make it in

@esolitos
Copy link
Author

I can say for sure that I will not be able to work on this, to many things going on at the moment.

@ignatiusreza
Copy link
Contributor

some progress are there, but nothing concrete yet, I'll try to get a PR ready by the end of the week.. sorry for the very slow progress..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants