1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/types
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
..
backend Add docker build --iidfile=FILE 2017-05-05 16:35:54 +01:00
blkiodev
container Merge pull request #32504 from dongluochen/healthcheck_duration 2017-04-27 23:54:00 -04:00
events
filters use t.Fatal() to output the err message where the values used for formatting 2017-02-23 10:16:22 +08:00
image Set expected response headers for Ping. 2017-01-03 11:47:47 -05:00
mount Add 'consistent', 'cached', and 'delegated' mode flags 2017-03-01 18:13:47 +00:00
network Enhance network inspect to show all tasks, local & non-local, in swarm mode 2017-03-13 17:52:08 -07:00
plugins/logdriver Implement plugins for logging drivers 2017-04-10 13:17:20 -04:00
registry hack/swagger-gen.sh is not exist, it should be /hack/generate-swagger-api.sh 2016-11-22 16:32:32 +08:00
strslice
swarm Merge pull request #32828 from cyli/external-ca-cert 2017-04-28 10:30:57 -04:00
time fix typo in api/types/time/timestamp.go 2017-01-14 14:16:03 +08:00
versions Merge pull request #28651 from YuPengZTE/devMD002 2016-11-22 13:11:37 +01:00
volume hack/swagger-gen.sh is not exist, it should be /hack/generate-swagger-api.sh 2016-11-22 16:32:32 +08:00
auth.go
client.go Merge pull request #28923 from erikh/fix-copy 2017-04-12 08:21:17 -07:00
configs.go Enforce zero plugin refcount during disable. 2016-12-22 13:26:53 -08:00
error_response.go
graph_driver_data.go Generate GraphDriver from spec, and fix up image spec. 2017-01-03 11:47:47 -05:00
id_response.go Add an IDResponse type 2016-10-31 11:16:02 -04:00
image_delete_response_item.go Generate ImageDeleteResponse from swagger spec. 2017-01-03 11:47:47 -05:00
image_summary.go
plugin.go Embed DockerVersion in plugin config. 2017-03-22 10:26:20 -07:00
plugin_device.go
plugin_env.go
plugin_interface_type.go
plugin_mount.go
plugin_responses.go Rewrite the function 'validatePrivileges' without checking order 2017-02-04 08:47:40 +08:00
port.go
seccomp.go change minor mistake of spelling 2016-12-20 21:05:19 +08:00
service_update_response.go Return warnings from service create and service update when digest pinning fails 2016-11-18 09:31:31 -08:00
stats.go Correct CPU usage calculation in presence of offline CPUs and newer Linux 2017-03-10 10:24:33 +00:00
types.go Add docker build --iidfile=FILE 2017-05-05 16:35:54 +01:00
volume.go Return warnings from service create and service update when digest pinning fails 2016-11-18 09:31:31 -08:00