Git Product home page Git Product logo

Comments (5)

EugenMayer avatar EugenMayer commented on May 25, 2024

Set watch_strategy:disable and no watch task will be started.

see https://github.com/EugenMayer/docker-sync/wiki/2.-Configuration or more specificly here https://github.com/EugenMayer/docker-sync/blob/master/example/docker-sync.yml#L61

from docker-sync.

fearlsgroove avatar fearlsgroove commented on May 25, 2024

I don't want to disable watching altogether, just to be able to build the containers and do an initial sync, then exit so I know when the initial sync is done.

My goal here is to run some cleanup tasks in a script to fix permissions issues with the mounted docker volumes. With rsync i can set the target UID but with unison I can't. I don't want to edit configuration files during the process.

from docker-sync.

EugenMayer avatar EugenMayer commented on May 25, 2024

unison is about to get his feature. How to script docker-sync is written here https://github.com/EugenMayer/docker-sync/wiki/7.-Scripting-with-docker-sync

This should give you the option to run any before/after tasks, so before sync, after sync, before compose, after compose.

I hope that fits for you

from docker-sync.

fearlsgroove avatar fearlsgroove commented on May 25, 2024

I managed to work around my permissions/uid stuff another way. I don't know (much) ruby so scripting in ruby isn't super straightforward for me, but I'll give it a try anyway.

That said, I still think there's value in reconsidering your command line options here. I'll probably hack my way through building individual scripts to:

start: turns on the containers, does an initial sync
watch: runs start if needed and starts watching
stop: stops the containers
clean: as now

The current options seem like oddly specific combinations of use cases. Not to belabor the point or any thing :)

from docker-sync.

EugenMayer avatar EugenMayer commented on May 25, 2024

@fearlsgroove even if they seem odd, docker-sync has a specific central use point:
make volume-sharing performance and easy. This is not done by "inital sync" but rather by sync+watch - thats why this is the default and will always be the default.

Splitting operations up in "sync only" and "watch" and things, might become and extra layer, but not the defaults.

Hope that make sense

from docker-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.