cekit / cekit

CEKit - Container Evolution Kit
https://cekit.io/
MIT License
103 stars 39 forks source link

Allow to pass parameters to modules at install time #640

Open goldmann opened 4 years ago

goldmann commented 4 years ago

We have a lot of images with the same pattern referencing an 'install' module, which in turn refers to a 'install.sh' script, which installs the artifact. This applies to things like licenses as well that need to be added to the image. Most of our artifacts/images have a uniform location to install to and to get licenses from, so we would like to reduce code duplication.

What would make our lives a lot simpler was if one could specify something like this:

modules:
  ...
  install:
    - name: mymod
      parameters:
      - arg1
      - arg2

This would in turn pass these parameters to any scripts in that modules 'execute' section:

name: mymod
execute:
  - script: 'extract_licenses.sh' # Passed <arg1> and <arg2>
rnc commented 3 years ago

Internal-reference : CPAAS-1385