Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow to pass parameters to modules at install time #640

@goldmann

Description

@goldmann

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>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions