Skip to content

Commit

Permalink
Readme: prefetch-deps: example of usage of configfile
Browse files Browse the repository at this point in the history
Add example how config file should be used

Signed-off-by: Martin Basti <[email protected]>
  • Loading branch information
MartinBasti committed Jul 26, 2024
1 parent 5004c6a commit 0d0ce25
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 0 deletions.
18 changes: 18 additions & 0 deletions task/prefetch-dependencies-oci-ta/0.1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ application source code are stored as a trusted artifact in the provided OCI rep
For additional info on Cachi2, see docs at
https://github.com/containerbuildsystem/cachi2#basic-usage.

## Configuration

Config file must be passed as a YAML string. For all available config options please check
[available configuration parameters] page.

Example of setting timeouts:

```yaml
params:
- name: config-file-content
value: |
---
requests_timeout: 300
subprocess_timeout: 3600
```
[available configuration parameters]: https://github.com/containerbuildsystem/cachi2?tab=readme-ov-file#available-configuration-parameters
## Parameters
|name|description|default value|required|
|---|---|---|---|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ spec:
application source code are stored as a trusted artifact in the provided OCI repository.
For additional info on Cachi2, see docs at
https://github.com/containerbuildsystem/cachi2#basic-usage.
## Configuration
Config file must be passed as a YAML string. For all available config options please check
[available configuration parameters] page.
Example of setting timeouts:
```yaml
params:
- name: config-file-content
value: |
---
requests_timeout: 300
subprocess_timeout: 3600
```
[available configuration parameters]: https://github.com/containerbuildsystem/cachi2?tab=readme-ov-file#available-configuration-parameters
params:
- name: SOURCE_ARTIFACT
description: The Trusted Artifact URI pointing to the artifact with
Expand Down
18 changes: 18 additions & 0 deletions task/prefetch-dependencies-oci-ta/0.1/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,24 @@ description: |-
application source code are stored as a trusted artifact in the provided OCI repository.
For additional info on Cachi2, see docs at
https://github.com/containerbuildsystem/cachi2#basic-usage.
## Configuration
Config file must be passed as a YAML string. For all available config options please check
[available configuration parameters] page.
Example of setting timeouts:
```yaml
params:
- name: config-file-content
value: |
---
requests_timeout: 300
subprocess_timeout: 3600
```
[available configuration parameters]: https://github.com/containerbuildsystem/cachi2?tab=readme-ov-file#available-configuration-parameters
preferStepTemplate: true
removeWorkspaces:
- source
Expand Down
17 changes: 17 additions & 0 deletions task/prefetch-dependencies/0.1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@
Task that uses Cachi2 to prefetch build dependencies.
See docs at https://github.com/containerbuildsystem/cachi2#basic-usage.

## Configuration

Config file must be passed as a YAML string. For all available config options please check [available configuration parameters] page.

Example of setting timeouts:

```yaml
params:
- name: config-file-content
value: |
---
requests_timeout: 300
subprocess_timeout: 3600
```
[available configuration parameters]: https://github.com/containerbuildsystem/cachi2?tab=readme-ov-file#available-configuration-parameters
## Parameters
|name|description|default value|required|
|---|---|---|---|
Expand Down
18 changes: 18 additions & 0 deletions task/prefetch-dependencies/0.1/prefetch-dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@ spec:
description: |-
Task that uses Cachi2 to prefetch build dependencies.
See docs at https://github.com/containerbuildsystem/cachi2#basic-usage.
## Configuration
Config file must be passed as a YAML string. For all available config options please check
[available configuration parameters] page.
Example of setting timeouts:
```yaml
params:
- name: config-file-content
value: |
---
requests_timeout: 300
subprocess_timeout: 3600
```
[available configuration parameters]: https://github.com/containerbuildsystem/cachi2?tab=readme-ov-file#available-configuration-parameters
params:
- description: Configures project packages that will have their dependencies prefetched.
name: input
Expand Down

0 comments on commit 0d0ce25

Please sign in to comment.