Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cmd/convertor/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ type BuilderOptions struct {
// CustomResolver allows using a custom resolver instead of the default docker resolver
// Used for tar import/export functionality
CustomResolver remotes.Resolver

// Pipeline, when set, uploads each converted layer blob to S3 immediately
// after it finishes converting, overlapping upload time with conversion of
// subsequent layers.
Pipeline *DirectUploadPipeline
}

type graphBuilder struct {
Expand Down Expand Up @@ -300,6 +305,7 @@ func (b *graphBuilder) buildOne(ctx context.Context, src v1.Descriptor, tag bool
engineBase.noUpload = b.NoUpload
engineBase.dumpManifest = b.DumpManifest
engineBase.retryCount = b.RetryCount
engineBase.pipeline = b.Pipeline
if _, ok := b.Resolver.(*FileBasedResolver); ok {
engineBase.tarExport = true
}
Expand Down
1 change: 1 addition & 0 deletions cmd/convertor/builder/builder_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ type builderEngineBase struct {
referrer bool
tarExport bool
retryCount int
pipeline *DirectUploadPipeline
}

func (e *builderEngineBase) isGzipLayer(ctx context.Context, idx int) (bool, error) {
Expand Down
Loading
Loading