Comments (6)
s/Docker image/Docker container/ ... correct?
from cct.
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.
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.
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.
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.
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)
- misleading errors at build-time due to module scanner
- Pykwalify and logging levels HOT 1
- Remove dummy module causing No such file or directory DEBUG messages
- Show bash command output if any, when debug enabled HOT 2
- Make it possible to add environment variables and labels as part of module.yaml HOT 7
- Release module as part of CCT release HOT 3
- CCT report modules as NotRun HOT 1
- Enable script modules to use any language
- update artifacts fetching to be synced with dogen approach
- revisit module.yaml syntax
- Remove bash module
- If change yaml file request module which doesn't exists it fail quietly HOT 1
- Remove old and outdated samples HOT 1
- Fix python module names to comply with script ones
- CCT_MODULE_PATH variable is wrongly set in script modules
- remove run from excluded module methods.
- CCT configuration in YAML should be validated HOT 1
- Cache modules locally for faster building HOT 1
- Make it easy to locally develop CCT modules HOT 1
- modules should be cloned with -b and --depth 1 options 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 cct.