Closed
Description
Background
At the moment, Cloud Pipeline allows to set a predefined set of capabilities in the GUI for a job or a tool. Which trigger complex reconfiguration for the job (e.g. DIND).
For some use-cases we need to run some simple scripts per user's request. Such scripts may vary between the environments.
It would be nice to let the admins specify those scripts in the platform settings and allow users to select them in the "capabilities" menu.
Approach
- Add a new preference
launch.capabilities
with the following format:
{
"capability1": {
"description": "Some text goes here",
"commands": [
"cmd1",
"cmd2"
]
},
"capability2": {
"description": "Another text goes here",
"commands": [
"cmd1"
]
}
}
- GUI shall read this preference and append list of capabilities names into the overall list and display the
description
field in the tooltip, when hovering this custom capability
- If the capability is selected - it shall be set as an environment variable in the following format:
CP_CAP_CUSTOM_{CAPABILITY_NAME}=true
. E.g.CP_CAP_CUSTOM_capability1=true
for the example above