Comments (8)
Guys, have you looked at https://github.com/devexp-db/cont-lib project?
The container runtime parameters are already done there for some time.
What is the benefit to solve this in 'cct' once more ;)? Example of usage
is in https://github.com/fedora-cloud/Fedora-Dockerfiles/tree/master/postgresql
Both environment variables and additional "descriptor" files are already
supported.
from cct.
@praiskup Do you have any docs?
The point is to get rid of bash scripts which is not very nice solution to anything. Also, have you announced it anywhere? This is the firts time I see your tool.
from cct.
Docs are TBD, it was mentioned on appinfra - and it is part of
rhscl-dockerfiles project/{rhel,fedora}-postgresql.
So far it was about do it for PostgreSQL container and about "cut out
things that are worth doing consistently in other images". Something like
DRY.
For docs I recommend to look at:
https://github.com/devexp-db/cont-lib/blob/master/configure.ac
https://github.com/devexp-db/cont-lib/blob/master/share/cont-lib/cont-lib.sh.in
The point is to get rid of bash scripts which is not very nice solution
to anything.
This is quite strong opinion TBH :).
from cct.
It's an opinion of the ex-maintainer of initscripts..I'll take a better look later today, thanks
from cct.
@praiskup
I looked at that tools and it seems that is really good for shell scripting, and I think that you can just implement a module for cont-lib and run it as a part of cct. and this probably is the way we want to go. Just to have anyone to use his favorite engine, libraries, frameworks and combine them to an ideal tool. This approach enables anyone to make a small step which can be used by almost anyone.
also we really want the tool to be used for configuring containers in a docker build as in docker run.
from cct.
@praiskup I agree with @l-d-j that there should be possibility to have cct
plugable so that you can use whatever you want to implement your configuration bits..
But to answer your question about "why is bash bad idea?" - You had to implement even a simple split function for your project because you are using bash - every single language I worked with so far has that, only in bash you need to do that over and over again for every project you create...and that's why I think shell scripts are bad idea for general commonly used framework(s)
from cct.
I basically see your point even though the 'splitting' example is not precisely
spelled. Its not "just" split, there is also "escaping" implemented (and
already tested in testsuite). There was nothing more needed during the time I
looked at it, so .. so for my PostgreSQL usecase is anything else
overkill (and it can be for other containers the same).
If I really need something more complicated, there is no problem
optionally plug 'cct' or other already existing configuration tool in.
from cct.
Back to the original topic...
I am not entirely sure if this changed or not, but back then in dock
when run in OpenShift in a container we passed the configuration through environment variable - but not a single config option - whole content of configuration serialized into a single environment variable - I didn't like it back then, but it was actually the only way how to pass the config through OpenShift because you are not able to get a file to OpenShift infra and mount it in container. What is your opinion on this? Would it make sense to have it as an option next to the two @goldmann described?
from cct.
Related Issues (20)
- 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
- 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
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.