DockerCLI/vendor/github.com
Ian Campbell c3648a9c94 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 12:12:36 -07:00
..
Azure/go-ansiterm Add vendor 2017-04-17 18:12:58 -04:00
Microsoft/go-winio Add vendor 2017-04-17 18:12:58 -04:00
Nvveen/Gotty Add vendor 2017-04-17 18:12:58 -04:00
Sirupsen/logrus Add vendor 2017-04-17 18:12:58 -04:00
agl/ed25519 Add vendor 2017-04-17 18:12:58 -04:00
coreos/etcd Add vendor 2017-04-17 18:12:58 -04:00
davecgh/go-spew Add vendor 2017-04-17 18:12:58 -04:00
docker Add `docker build --iidfile=FILE` 2017-05-05 12:12:36 -07:00
flynn-archive/go-shlex Add vendor 2017-04-17 18:12:58 -04:00
gogo/protobuf Add vendor 2017-04-17 18:12:58 -04:00
golang/protobuf Add vendor 2017-04-17 18:12:58 -04:00
gorilla Add vendor 2017-04-17 18:12:58 -04:00
inconshreveable/mousetrap Add vendor 2017-04-17 18:12:58 -04:00
mattn/go-shellwords Add vendor 2017-04-17 18:12:58 -04:00
miekg/pkcs11 Add vendor 2017-04-17 18:12:58 -04:00
mitchellh/mapstructure Add vendor 2017-04-17 18:12:58 -04:00
opencontainers update vendor.conf 2017-05-03 19:27:10 -07:00
pkg/errors Add vendor 2017-04-17 18:12:58 -04:00
pmezard/go-difflib Add vendor 2017-04-17 18:12:58 -04:00
spf13 Add vendor 2017-04-17 18:12:58 -04:00
stretchr/testify Add vendor 2017-04-17 18:12:58 -04:00
xeipuuv Add vendor 2017-04-17 18:12:58 -04:00