Git Product home page Git Product logo

Comments (5)

EugenMayer avatar EugenMayer commented on May 25, 2024

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.

EugenMayer avatar EugenMayer commented on May 25, 2024

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.

midN avatar midN commented on May 25, 2024

👍 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.

EugenMayer avatar EugenMayer commented on May 25, 2024

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.

EugenMayer avatar EugenMayer commented on May 25, 2024

merged in 0.2.0

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.