Closed carolynvs closed 3 years ago
Oh I just found WithRelocationMap
! I think that will do what I need.
I think that there is a bug in the implementation that causes the relocation map to be ignored. I have a fix locally that I'll submit in a bit as soon as I figure out how to test the fix.
Here's the scenario that a Porter user is encountering:
example/mybun-invocation-image:v1.0.0 => localhost:5000/mybun-invocation-image:v1.0.0
.The copy fails because it tries to copy the invocation image from its original location defined in the bundle, instead of copying the relocated invocation image.
I'm not sure if there is a way to make this work right now? It seems like FixupBundle should take a relocation map for the bundle, and take any relocations into account before pulling and copying images?