-
Notifications
You must be signed in to change notification settings - Fork 150
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
Conversation
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]>
Signed-off-by: Adam Cmiel <[email protected]>
deedd3b
to
e2b2b24
Compare
@@ -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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)
After konflux-ci/build-definitions#1336, build tasks no longer use this Syft image. Signed-off-by: Adam Cmiel <[email protected]>
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.