Skip to content

Conversation

@ribbybibby
Copy link
Contributor

Add a command that maps image references in Dockerfiles to Chainguard.

It attempts to be as low touch as possible, leaving the file formatted exactly as it is and just replacing the images where it finds them.

As part of this I've refactored the tag matching logic because I wanted to only map to -dev tags, unless the image has no -dev tags at all. This wasn't possible with the abstraction I was previously using.

Add a command that maps image references in Dockerfiles to Chainguard.

It attempts to be as low touch as possible, leaving the file formatted
exactly as it is and just replacing the images where it finds them.

As part of this I've refactored the tag matching logic because I wanted
to only map to -dev tags, unless the image has no -dev tags at all. This
wasn't possible with the abstraction I was previously using.
@ribbybibby ribbybibby merged commit 047923d into chainguard-dev:main Jan 6, 2026
11 checks passed
@ribbybibby ribbybibby deleted the image-mapper-docker branch January 6, 2026 15:34
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.

2 participants