Git Product home page Git Product logo

Comments (6)

AlexZeitler avatar AlexZeitler commented on July 29, 2024 1

@nielinjie @emileae Did you notice we got this thanks to @furstenheim by #124 a while ago?

from docker-compose.

Steveb-p avatar Steveb-p commented on July 29, 2024

@nielinjie this repository practically wraps calls to docker-compose binary, and it doesn't support as far as I can tell receiving it's configuration from standard input.

This practically means no, and I doubt it will be supported - it would mean building functionality that does not exist in docker-compose itself.

EDIT: Nvm, apparently you can pass configuration via stdin, see https://gist.github.com/rmetzler/715cd24ded7438ace962

from docker-compose.

AlexZeitler avatar AlexZeitler commented on July 29, 2024

I wonder if this would be possible to implement. @nielinjie would you be willing to send a pull request?

from docker-compose.

emileae avatar emileae commented on July 29, 2024

I'd be very interested in this enhancement, any tips on where to start?

from docker-compose.

Steveb-p avatar Steveb-p commented on July 29, 2024

@emileae I believe it would be something like passing a stream as stdin to spawned process options. You'd probably want to create one such stream from a string and pass into...

const childProc = childProcess.spawn('docker-compose', composeArgs, { cwd, env });

See https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options and https://nodejs.org/api/child_process.html#child_process_options_stdio for available process options.

Haven't tried that though. I haven't worked in node for a while.

from docker-compose.

emileae avatar emileae commented on July 29, 2024

Really cool, thanks for letting me know!

from docker-compose.

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.