1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/server/router
Ian Campbell 5894bc1abf Add docker build --iidfile=FILE
This is synonymous with `docker run --cidfile=FILE` and writes the digest of
the newly built image to the named file. This is intended to be used by build
systems which want to avoid tagging (perhaps because they are in CI or
otherwise want to avoid fixed names which can clash) by enabling e.g. Makefile
constructs like:

    image.id: Dockerfile
    	docker build --iidfile=image.id .

    do-some-more-stuff: image.id
    	do-stuff-with <image.id

Currently the only way to achieve this is to use `docker build -q` and capture
the stdout, but at the expense of losing the build output.

In non-silent mode (without `-q`) with API >= v1.29 the caller will now see a
`JSONMessage` with the `Aux` field containing a `types.BuildResult` in the
output stream for each image/layer produced during the build, with the final
one being the end product.  Having all of the intermediate images might be
interesting in some cases.

In silent mode (with `-q`) there is no change, on success the only output will
be the resulting image digest as it was previosuly.

There was no wrapper to just output an Aux section without enclosing it in a
Progress, so add one here.

Added some tests to integration cli tests.

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-05-05 16:35:54 +01:00
..
build Add docker build --iidfile=FILE 2017-05-05 16:35:54 +01:00
checkpoint Use function arguments for route setup. 2017-04-12 08:43:51 -04:00
container Honor context cancellation when pruning 2017-04-24 09:11:29 -07:00
image Refacator pkg/streamformatter 2017-05-02 17:38:12 -04:00
network Honor context cancellation when pruning 2017-04-24 09:11:29 -07:00
plugin Refacator pkg/streamformatter 2017-05-02 17:38:12 -04:00
swarm Use function arguments for route setup. 2017-04-12 08:43:51 -04:00
system Honor context within SystemDiskUsage 2017-04-24 09:11:29 -07:00
volume Honor context cancellation when pruning 2017-04-24 09:11:29 -07:00
experimental.go router: Return explicit error rather than 404 for experimental. 2016-11-17 15:51:47 -08:00
local.go Use function arguments for route setup. 2017-04-12 08:43:51 -04:00
router.go Decouple the "container" router from the actual daemon implementation. 2016-02-08 11:30:57 -05:00