-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update task/generate-odcs-compose/0.2/README.md
- Loading branch information
1 parent
db82f68
commit b58b7cd
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# generate-odcs-compose task | ||
|
||
## Description: | ||
This task generates compose (yum repository) files that can be later on mounted during | ||
build tasks and used for installing RPMs. It uses ODCS (On Demand Compose Service) for | ||
generating composes. | ||
|
||
The task takes inputs in [structure][input structure] defined by the ODCS Python client. | ||
|
||
It stores the generated compose inside a directory provided as input, that can later on | ||
be mounted during a build task. | ||
|
||
The input is provided inside a YAML file with its root containing a single element | ||
named `composes`. This element is a list in which each entry is to be converted | ||
into inputs for a single call to ODCS. | ||
|
||
The task requires a secret to reside on the namespace where the task is running. | ||
The secret should be named `odcs-service-account` and it should include two fields: | ||
`client-id` - containing an OIDC client ID and `client-secret` containing the client's | ||
secret for generating OIDC token. | ||
|
||
Element fields: | ||
|
||
* kind: Corresponds to sub-types of [`ComposeSourceGeneric`][input structure]. | ||
* spec: keyword arguments related to the compose source | ||
* additional_args: flat-list of additional compose keyword arguments. | ||
|
||
Example: | ||
|
||
composes: | ||
- kind: ComposeSourceModule | ||
spec: | ||
modules: | ||
- squid:4:8090020231130092412:a75119d5 | ||
additional_args: {} | ||
|
||
[input structure]: https://pagure.io/odcs/blob/master/f/client/odcs/client/odcs.py#_115 | ||
|
||
|
||
## Params: | ||
|
||
| Name | Description | Defaults | | ||
| --- | --- | --- | | ||
| COMPOSE_INPUTS | path from workdir workspace to compose inputs file | source/compose_inputs.yaml | | ||
| COMPOSE_OUTPUTS | path from workdir workspace to store compose output | fetched.repos.d | | ||
|
||
|
||
## Results: | ||
|
||
| name | description | | ||
| --- | --- | | ||
| repodir_path | Directory to write the resulting .repo files | | ||
|
||
## Source repository for image: | ||
https://github.com/redhat-appstudio/tools | ||
|
||
## Source repository for task (limited access): | ||
https://github.com/redhat-appstudio/tekton-tools |