Comments (5)
Well could you clarify how you run you stack, are you using
docker-sync-stack start
right? Because when using docker-sync start
you can stop/start from an external point by simply docker pause <synccontainer-name>
and then unpause docker unpause <synccontainer-name>
which also would be faster then stopping/starting it.
In general, i like the daemons idea, which also kinda does not block your cli anymore. I am not sure how easy it is since we already run 2 threads, which need to be handled then. Do you have any experience with this kind of implementation in ruby?
from docker-sync.
We could also easy implement this in a separate gem and use docker-sync as a library https://github.com/EugenMayer/docker-sync/wiki/7.-Scripting-with-docker-sync
I do something similar, since after the sync stack starts, i want not only the compose stack to start up, when its started, i want to pre-deploy a developer instance in my drupal. To orchestrate all this, i use a own thor script, docker-sync and docker-compose as libraries
thor dk:start --php7
This would starts docker-sync, then a a PHP7 driven stack for drupal ( compared to the default php5.5 stack ) implemented by overlays with docker-compose-gem, then it pre-installs an instance ( well this is done using consul mainly, but that does not really matter here ).
What i want to say, docker-sync can be used as a lib, also as a lib for a daemon. The question is, if we want the daemon to be an extra-thing without adjusting docker-sync but rather use it as a lib, or if we want to internally change the way docker-sync runs. We might need to both, anyways
from docker-sync.
👍 for wrapping whole thing into Daemons and adding option (-d
) to run it in the background. Was looking into it few days ago, would ideally like to run it in the background and use terminal-notifier
to let me know it synced. I might look into it on the weekend
I for example don't use docker-sync-stack
since in our project we have multiple compose
files and all of them have a task/service that should be run only once and normal stack/compose is ran without it. For example docker-compose .. up 1 3 4
, skipping 2
etc. I also restart compose/stack a lot during development, therefore it would be nice to have docker-sync
run in the background, while you can keep doing with your compose/stack anything else.
from docker-sync.
Since for now, the only hurdle to have your use case covered already @midN , is starting a new console cli, i will not actively work on this. I am concentrating on keeping things stable and smooth right now and would be happy if contributors would add features they need for their use case. Hope that makes sense
You can use a console to start
docker-sync start
And use a different console to do
docker-compose -f -f -f
Be aware of the scripting options though https://github.com/EugenMayer/docker-sync/wiki/7.-Scripting-with-docker-sync .. you can implement docker-sync as a library and as we do, implement you special docker-compose logic very convenient.
Beside that, it might make sense to make it possible to pass parameters for docker-compose in docker-sync-stack
, especially for service selection
from docker-sync.
merged in 0.2.0
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.