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

Use Konflux-built Syft image #1336

Merged
merged 5 commits into from
Aug 27, 2024
Merged

Conversation

chmeliik
Copy link
Contributor

@chmeliik chmeliik commented Aug 26, 2024

STONEBLD-2715

Switch from quay.io/redhat-appstudio/syft to
registry.access.redhat.com/rh-syft-tech-preview/syft-rhel9.

The latter is built and released via Konflux (from
https://github.com/redhat-appstudio/rh-syft/) and is a bit more up to
date.

We want to switch from the quay.io/redhat-appstudio/syft image to
registry.redhat.io/rh-syft-tech-preview/syft-rhel9. The new syft image
is built on ubi-micro and doesn't include the 'find' util. Delete the
symlinks already in the build step.

This is broken for buildah-remote, because the generation script does
not handle this part of the buildah script properly. To be fixed later.

Signed-off-by: Adam Cmiel <[email protected]>
Use a multi-line string literal instead of repeatedly concatenating
individual strings riddled with newline characters and confusing
whitespace.

Doesn't do much for the overall impossibility of reading the code, but
at least the upcoming changes to this part will be possible to review.

Signed-off-by: Adam Cmiel <[email protected]>
Some parts of the buildah script have to run in the cluster, not on the
remote VM. But the task-generator doesn't know that, so it runs them on
the VM (because they're in the buildah script) and hardcodes those that
should run *again* in the cluster.

Add symlink deletion to the hardcoded part.

Signed-off-by: Adam Cmiel <[email protected]>
Switch from quay.io/redhat-appstudio/syft to
registry.access.redhat.com/rh-syft-tech-preview/syft-rhel9.

The latter is built and released via Konflux (from
https://github.com/redhat-appstudio/rh-syft/) and is a bit more up to
date.

Signed-off-by: Adam Cmiel <[email protected]>
@@ -426,7 +426,7 @@ spec:
add:
- SETFCAP
- name: sbom-syft-generate
image: quay.io/redhat-appstudio/syft:v0.105.1@sha256:1910b829997650c696881e5fc2fc654ddf3184c27edb1b2024e9cb2ba51ac431
image: registry.access.redhat.com/rh-syft-tech-preview/syft-rhel9:1.4.1@sha256:34d7065427085a31dc4949bd283c001b91794d427e1e4cdf1b21ea4faf9fee3f
Copy link
Contributor

Choose a reason for hiding this comment

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

if syft is based on ubi9, why it's called syft-rhel9 and not syft-ubi9 ?

ubi and rhel is not the same

Copy link
Contributor Author

@chmeliik chmeliik Aug 26, 2024

Choose a reason for hiding this comment

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

Comet configuration. IIRC -ubi9 wasn't an option ¯\_(ツ)_/¯

(and "no suffix" also wasn't an option)

chmeliik added a commit to chmeliik/build-tasks-dockerfiles that referenced this pull request Aug 27, 2024
After konflux-ci/build-definitions#1336, build
tasks no longer use this Syft image.

Signed-off-by: Adam Cmiel <[email protected]>
@chmeliik chmeliik added this pull request to the merge queue Aug 27, 2024
Merged via the queue into konflux-ci:main with commit 644e78c Aug 27, 2024
13 checks passed
@chmeliik chmeliik deleted the new-syft-image branch August 27, 2024 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants