Giter Site home page Giter Site logo

Configration steps report about cct HOT 6 CLOSED

rwngwn avatar rwngwn commented on August 28, 2024
Configration steps report

from cct.

Comments (6)

vpavlin avatar vpavlin commented on August 28, 2024

s/Docker image/Docker container/ ... correct?

from cct.

rwngwn avatar rwngwn commented on August 28, 2024

actually both. in container for run-time configuration and in image for build-time. Because if you have cct inside you can run in Dockerfile too.

from cct.

vpavlin avatar vpavlin commented on August 28, 2024

Ah, correct..good point. How does this map to the module definition? Are you going to distinguish between build vs. runtime module types?

from cct.

rwngwn avatar rwngwn commented on August 28, 2024

No. modules are completely same. Because you typically need similar stuff. Only real difference is that in run-time you will just use new --command parameter to run your desired program in container in a way like:

cct --comand "/opt/eap/bin/standalone.sh -b 0.0.0.0" -- eap.yaml

so this will just process all changes in eap.yaml file and then it will just start eap.
now its implemented like: https://github.com/containers-tools/cct/blob/master/cct/cli/main.py#L48.
Will document it tomorrow :)

from cct.

vpavlin avatar vpavlin commented on August 28, 2024

Not that it matters much, but from UX point of view, I 'd probably more expect something like:

cct eap.yaml -- /opt/eap/bin/standalone.sh -b 0.0.0.0

So that I don't have to care about escaping issues with the command arguments..although I am not entirely sure how hard it would be to define this in ArgParser

from cct.

rwngwn avatar rwngwn commented on August 28, 2024

yep, will look more at ArgParser.. but it maybe hard because you can do stuff like

cct foo.yaml bar.yaml baz.yaml

so you can process multiple yaml files. But wil try to make better syntax. This was just implement to us to be able to really start using it in our images.

from cct.

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.