Giter Site home page Giter Site logo

Comments (6)

andrusha97 avatar andrusha97 commented on July 21, 2024

Also it's not clear from docs what should I specify in slave option

You always should specify slave. Cocaine provides some command line arguments to your program (to a framework actually), so it composes command to be run on its own, and the default command is always ignored.

from cocaine-tools.

cybernetlab avatar cybernetlab commented on July 21, 2024

You always should specify slave. Cocaine provides some command line arguments to your program (to a framework actually), so it composes command to be run on its own, and the default command is always ignored.

@andrusha97 Just for proposal. Maybe it would be better to provide these arguments via env var or in some other way, because current manner breaks docker run as executable manner. I see that docker is not a central point of overall system but maybe it's possible to change behaviour of just docker.io applications?

from cocaine-tools.

noxiouz avatar noxiouz commented on July 21, 2024

To make an application visible in cocaine, manifest should be uploaded. In case of Docker isolation we needn't store the application code. Application name must be the same as image name, and endpoint of Docker registry is specified in profile. So it seems to be enough to add an abilty to upload only a manifest without image building. @3Hren, What do you thing abiout it?

When it comes to passing arguments by other way. Unfortunately, it's impossible now in the current stable version, as all frameworks parse agrv to get an application name, uuid, endpoint. It doesn't matter for framework what type of isolation is used to isolate. May be in the next version of cocaine.... Anyway we will think about it. Thanks!

from cocaine-tools.

3Hren avatar 3Hren commented on July 21, 2024

Looks reasonable for me.

from cocaine-tools.

cybernetlab avatar cybernetlab commented on July 21, 2024

Thanks for your project! And for neat response! ;)

from cocaine-tools.

kobolog avatar kobolog commented on July 21, 2024

Actually, passing the args as environment variables was discussed a couple of times already, and I think it has all the chances to make it into the next release.

from cocaine-tools.

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.