Open Dentrax opened 1 year ago
I don't think Cosign should be opinionated on base image preferences. If you wanted to implement a replace-all-references function, it should be implemented such that you take a path to the image you want, rather than hardcode a preference.
+1 on @haydentherapper comments
Description
Introduce a new subcommand something like
resolve-chainguard
orresolve --chainguard
fordockerfile
command. It should take Dockerfiles as input and rewrites all the container images withcgr.dev/chainguard/$PACKAGE
corresponding.If package is not exists, we can keep it as-i. Moroever, ask for a prompt like: "Package X not exist, do you want to file an package request proposal on Wolfi?`.
Motivation
Encourge the end users to use Wolfi/Chainguard images and spray the aweraness of those images around with the community.
Algorithm
Source of Truth
To get all available chainguard images, we need some source of truth:
Related Work
The idea is similar to PR: dockerfile/resolve, the command actually rewrites all the images to pin their digest. /cc @developer-guy
Open Questions
latest
tags for this concern?Waiting your thoughts!