Comments (5)
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.
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.
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.
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.
@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)
- Feature Requestion: add update command HOT 1
- Default strategy for new Virtualization framework for Mac HOT 2
- Looking for changes - huge node_modules HOT 1
- File deleted on host still exists in app container HOT 11
- External network access and permission problems
- Enforcing one-way sync HOT 3
- `docker-sync -n` should create dummy volumes for non-started syncs
- Cannot start docker-sync with macOS Monterey - Apple M1 Chip HOT 2
- Bug: Wrong Unison image is pulled on M1 Mac HOT 4
- Docker sync daemon is crashing HOT 5
- `initialize': uninitialized constant DockerSync::DockerComposeSession HOT 4
- docker-sync start success, but I can't use docker-sync logs HOT 3
- Fatal error with Unison because of wrong default exclude definitions HOT 3
- Error in RSync strategy using the `sync_excludes` setting: undefined local variable or method `excludes_list' HOT 1
- Sync issue on MacOS 13.0 HOT 26
- `expand_ignore_strings`: undefined method `append` for Array HOT 3
- What's the "extra care" for using unison on OSX with sleep/hibernate. HOT 3
- Add support for passing --env-file to docker-sync start (using ENV file with/from different name or location)
- docker-sync start failed - /tmp/supervisor.sock no such file
- /docker-sync-1.0.5/tasks/sync/sync.thor:69:in `kill': Operation not permitted (Errno::EPERM) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-sync.