Skip to content

Commit

Permalink
Enable pip prefetching on Bundle pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
yuumasato committed Dec 19, 2024
1 parent 3245ff9 commit 674b945
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .tekton/file-integrity-operator-bundle-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
- name: hermetic
value: "true"
- name: prefetch-input
value: '[{"type": "rpm", "path": "bundle-hack"}]'
value: '[{"type": "rpm", "path": "bundle-hack"}, {"type": "pip", "path": "bundle-hack"}]'
pipelineSpec:
description: |
This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization.
Expand Down
2 changes: 1 addition & 1 deletion .tekton/file-integrity-operator-bundle-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
- name: hermetic
value: "true"
- name: prefetch-input
value: '[{"type": "rpm", "path": "bundle-hack"}]'
value: '[{"type": "rpm", "path": "bundle-hack"}, {"type": "pip", "path": "bundle-hack"}]'
pipelineSpec:
description: |
This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization.
Expand Down
5 changes: 5 additions & 0 deletions bundle-hack/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
flit_core==3.10.1
ruamel.yaml==0.17.9
ruamel.yaml.clib==0.2.12
setuptools==75.6.0
wheel==0.45.1
3 changes: 2 additions & 1 deletion bundle.openshift.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest as builder-runner
RUN microdnf install -y python3 python3-pip
RUN pip3 install --upgrade pip && pip3 install ruamel.yaml==0.17.9
RUN pip3 install --upgrade pip && pip3 install wheel
RUN pip3 install ruamel.yaml==0.17.9

# Use a new stage to enable caching of the package installations for local development
FROM builder-runner as builder
Expand Down

0 comments on commit 674b945

Please sign in to comment.