mudler/luet

Create final images with go-containerregistry

mudler opened this issue · 0 comments

func (a *PackageArtifact) GenerateFinalImage(ctx *types.Context, imageName string, b ImageBuilder, keepPerms bool) (backend.Options, error) {

Instead of invoking the backend, we should explore if it's possible to recreate an image with go-containerregistry from the tar artifact at hand. This has several advantages:

  • No need to anymore inject a .keep file into virtuals
  • No need to invoke the backend
  • It might solve permission issues - we can carry on all the necessary bits, which are instead skipped by COPY .