Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefetch pnc #44

Open
wants to merge 38 commits into
base: rhoai-2.16
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
bbd536c
add changes for generic fetcher
MohammadiIram Oct 30, 2024
98effb5
add changes for generic fetcher
MohammadiIram Oct 30, 2024
cb3afa2
Update .tekton/odh-trustyai-service-v2-16-push.yaml
MohammadiIram Oct 30, 2024
9b000dd
Update odh-trustyai-service-v2-16-pull-request.yaml
MohammadiIram Oct 30, 2024
c1d3d5d
Update generic_lockfile.yaml
MohammadiIram Oct 30, 2024
438236c
Update odh-trustyai-service-v2-16-push.yaml
MohammadiIram Oct 30, 2024
f4f7726
Update odh-trustyai-service-v2-16-push.yaml
MohammadiIram Oct 30, 2024
a578654
Update Dockerfile.konflux
MohammadiIram Oct 30, 2024
5ddd52e
Update .tekton/odh-trustyai-service-v2-16-push.yaml
MohammadiIram Oct 30, 2024
72d320e
Delete generic_lockfile.yaml
MohammadiIram Oct 30, 2024
a11e920
Create rpms.in.yaml
MohammadiIram Oct 31, 2024
7c3421e
Create rpms.lock.yaml
MohammadiIram Oct 31, 2024
50952fc
Create ubi.repo
MohammadiIram Oct 31, 2024
acfc092
Update odh-trustyai-service-v2-16-pull-request.yaml
MohammadiIram Oct 31, 2024
f71f77a
Update odh-trustyai-service-v2-16-push.yaml
MohammadiIram Oct 31, 2024
f8e18d3
Update Dockerfile.konflux
MohammadiIram Oct 31, 2024
7acaf4a
Update odh-trustyai-service-v2-16-pull-request.yaml
MohammadiIram Oct 31, 2024
b6920cd
Update odh-trustyai-service-v2-16-push.yaml
MohammadiIram Oct 31, 2024
a208165
Update odh-trustyai-service-v2-16-pull-request.yaml
MohammadiIram Oct 31, 2024
5cd1517
Update odh-trustyai-service-v2-16-push.yaml
MohammadiIram Oct 31, 2024
b3f2a91
Update Dockerfile.konflux
MohammadiIram Oct 31, 2024
9a19d42
Update odh-trustyai-service-v2-16-pull-request.yaml
MohammadiIram Oct 31, 2024
71649ca
Update odh-trustyai-service-v2-16-pull-request.yaml
MohammadiIram Oct 31, 2024
13a3ed2
Update odh-trustyai-service-v2-16-push.yaml
MohammadiIram Oct 31, 2024
5f12236
Update odh-trustyai-service-v2-16-pull-request.yaml
MohammadiIram Oct 31, 2024
49c3ce9
Update odh-trustyai-service-v2-16-push.yaml
MohammadiIram Oct 31, 2024
66f210c
Update odh-trustyai-service-v2-16-pull-request.yaml
MohammadiIram Oct 31, 2024
8f0bc5c
Update odh-trustyai-service-v2-16-pull-request.yaml
MohammadiIram Oct 31, 2024
f0e07b3
Update Dockerfile.konflux
MohammadiIram Nov 1, 2024
136e386
Update odh-trustyai-service-v2-16-pull-request.yaml
MohammadiIram Nov 1, 2024
5a95ade
Update odh-trustyai-service-v2-16-pull-request.yaml
MohammadiIram Nov 1, 2024
a2fd156
Update .tekton/odh-trustyai-service-v2-16-pull-request.yaml
MohammadiIram Nov 1, 2024
f6f9f77
Update odh-trustyai-service-v2-16-pull-request.yaml
MohammadiIram Nov 1, 2024
7facec5
Update odh-trustyai-service-v2-16-pull-request.yaml
MohammadiIram Nov 1, 2024
499f835
Update odh-trustyai-service-v2-16-pull-request.yaml
MohammadiIram Nov 1, 2024
e07641a
Update Dockerfile.konflux
MohammadiIram Nov 1, 2024
152dab5
Update Dockerfile.konflux
MohammadiIram Nov 1, 2024
f49038f
Update Dockerfile.konflux
MohammadiIram Nov 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .tekton/odh-trustyai-service-v2-16-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ spec:
value: Dockerfile.konflux
- name: path-context
value: .
- name: prefetch-input
value: '{"type": "generic_lockfile", "path": "."}'
pipelineSpec:
description: |
This pipeline is ideal for building container images from a Containerfile while reducing network traffic.
Expand Down Expand Up @@ -101,7 +103,7 @@ spec:
description: Skip checks against built image
name: skip-checks
type: string
- default: "false"
- default: "true"
description: Execute the build with network isolation
name: hermetic
type: string
Expand Down
4 changes: 3 additions & 1 deletion .tekton/odh-trustyai-service-v2-16-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ spec:
value: 'master'
- name: pnc-profile
value: 'prod'
- name: prefetch-input
value: '{"type": "generic_lockfile", "path": "."}'
MohammadiIram marked this conversation as resolved.
Show resolved Hide resolved
pipelineSpec:
description: |
This pipeline is ideal for building container images from a Containerfile while reducing network traffic.
Expand Down Expand Up @@ -157,7 +159,7 @@ spec:
description: Skip checks against built image
name: skip-checks
type: string
- default: "false"
- default: "true"
description: Execute the build with network isolation
name: hermetic
type: string
Expand Down
10 changes: 10 additions & 0 deletions generic_lockfile.yaml
MohammadiIram marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
metadata:
version: "1.0"
artifacts:
- download_url: https://github.com/cachito-testing/cachi2-generic/archive/refs/tags/v1.0.0.zip
checksums:
sha256: 4fbcaa2a8d17c1f8042578627c122361ab18b7973311e7e9c598696732902f87
- download_url: https://github.com/cachito-testing/cachi2-generic/archive/refs/tags/v2.0.0.zip
target: archive.zip
checksums:
sha256: 386428a82f37345fa24b74068e0e79f4c1f2ff38d4f5c106ea14de4a2926e584
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you'd put in the files you need, these are just examples.

  • download_url is the url the files is available from
  • target is optional and specifies a subpath the file will be saved as. If not defined, it will be derived from the url
  • checksums is a list of pairs of algorithm and hash, that is necessary to verify file identity

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Could you please let me know which files you’re referring to here?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those would be the files that you download from the internet during the build, which would violate the hermetic build condition. Having a brief look into your Dockerfile, I would say it's these files

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loading