Skip to content

builder-next: allow outputs configuration#38898

Merged
tiborvass merged 1 commit intomoby:masterfrom
tonistiigi:build-outputs
Mar 19, 2019
Merged

builder-next: allow outputs configuration#38898
tiborvass merged 1 commit intomoby:masterfrom
tonistiigi:build-outputs

Conversation

@tonistiigi
Copy link
Copy Markdown
Member

Enables controlling exporter settings for build requests running in BuildKit. Only "local" exporter is currently supported as the others have a dependency on containerd contentstore and need to wait for #38043 .

The datatype is an array to support multiple exporters in the future. The implementation currently only accepts a single exporter.

The default behavior is to still export image into the image store.

@tiborvass @AkihiroSuda

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

Comment thread builder/builder-next/builder.go Outdated
Comment thread builder/builder-next/builder.go Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering we should call it docker for BuildKit API compatibility

Or internal

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to call it docker cause that already means a different exporter. This value is completely invisible to user.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is also temporary. When containerd support lands, this should all go away.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, on client side, it is prohibited to set the output type to moby explicitly?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, you could use it to override options but I would never document it as a guaranteed behavior.

Comment thread api/types/client.go Outdated
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 19, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@36d2c8b). Click here to learn what that means.
The diff coverage is 0%.

@@            Coverage Diff            @@
##             master   #38898   +/-   ##
=========================================
  Coverage          ?   36.45%           
=========================================
  Files             ?      614           
  Lines             ?    45881           
  Branches          ?        0           
=========================================
  Hits              ?    16725           
  Misses            ?    26869           
  Partials          ?     2287

@thaJeztah thaJeztah added the area/builder Build label Mar 19, 2019
Comment thread api/server/router/build/build_routes.go Outdated
Comment thread api/swagger.yaml Outdated
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants