buildkit/client
Ian Campbell f9a436599a client/llb: factor out `State.WithImageConfig` from `Image`.
Currently if a caller wants an `Image` (with config applied) and the
corresponding config (e.g. to use a base image and tailor the config to return
as `exptypes.ExporterImageConfigKey` in the build result) then they have to
`ResolveImageConfig` and then `llb.Image(..., llb.WithMetaResolver)`, which
ends up resolving the config twice.

Pulling this code out allows them to instead to the `config := ResolveImageConfig()`
once and to then do `llb.Image(...).WithImageConfig(config)`.

This is only really necessary if you want to run things in the image context
(and thus want the config applied) as part of tailoring the config before
returning the image and config. If you aren't running things on that `Image` as
part of the build then it doesn't matter if the config isn't applied to the
`Image` and `ResolveImageConfig` + `Image(...)` (without a metaresolver) is
fine.

Signed-off-by: Ian Campbell <ijc@docker.com>
2018-10-18 10:06:00 +01:00
..
buildid allow frontends to be run directly on the control client side 2018-08-14 11:50:08 +01:00
llb client/llb: factor out `State.WithImageConfig` from `Image`. 2018-10-18 10:06:00 +01:00
build.go implement `gateway.Reference.StatFile` method 2018-10-03 12:16:45 +01:00
build_test.go testutil: avoid excessive daemons in integration tests 2018-10-11 16:47:35 -07:00
client.go buildctl: replace withblock with dial error check 2018-09-13 17:29:01 -07:00
client_test.go testutil: avoid excessive daemons in integration tests 2018-10-11 16:47:35 -07:00
client_unix.go Allow to use TCP for buildkit daemon and client communication 2017-10-07 22:02:15 +02:00
client_windows.go client: support non-npipe server addresses on Windows 2018-05-14 15:15:08 +01:00
diskusage.go cache: detect refs shared with image store 2018-07-27 14:08:50 -07:00
exporters.go client: support passing io.WriteCloser via SolveOpt for FSSyncTargetFile 2018-03-28 15:48:54 +09:00
filter.go client: generalize the filter passing 2018-07-25 18:19:31 -07:00
graph.go solver: allow exporters to set data to solve results 2018-05-07 20:52:11 -07:00
prune.go cache: add gc style pruning support 2018-08-06 21:45:39 -07:00
solve.go Bump github.com/tonistiigi/fsutil dependency to f567071bed24 2018-10-03 11:46:35 +01:00
workers.go update golint comments 2018-09-18 22:06:47 -07:00