1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/builder/dockerfile
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
..
command
parser Remove pkg/testutil/assert in favor of testify 2017-04-14 12:03:21 -07:00
bflag.go Change builder.dispatchers to use a dispatchRequest object 2017-04-24 14:21:19 -04:00
bflag_test.go use t.Fatal() to output the err message where the values used for formatting 2017-02-23 10:16:22 +08:00
buildargs.go Some refactoring of dispatch() 2017-05-04 17:11:08 -04:00
buildargs_test.go Remove pkg/testutil/assert in favor of testify 2017-04-14 12:03:21 -07:00
builder.go Add docker build --iidfile=FILE 2017-05-05 16:35:54 +01:00
builder_test.go Remove pkg/testutil/assert in favor of testify 2017-04-14 12:03:21 -07:00
builder_unix.go
builder_windows.go
dispatchers.go Some refactoring of dispatch() 2017-05-04 17:11:08 -04:00
dispatchers_test.go Some refactoring of dispatch() 2017-05-04 17:11:08 -04:00
dispatchers_unix.go Cleanup in dispatcher.env 2017-04-11 14:44:28 -04:00
dispatchers_unix_test.go
dispatchers_windows.go Cleanup in dispatcher.env 2017-04-11 14:44:28 -04:00
dispatchers_windows_test.go Use filepath.Clean in normaliseWorkdir for windows 2016-10-31 13:27:05 -07:00
envVarTest Minor tweaks to quotes in env vars 2017-04-12 12:20:14 -07:00
evaluator.go Some refactoring of dispatch() 2017-05-04 17:11:08 -04:00
evaluator_test.go Some refactoring of dispatch() 2017-05-04 17:11:08 -04:00
evaluator_unix.go
evaluator_windows.go Windows: Allow user in builder 2016-11-14 14:10:47 -08:00
imagecontext.go Some refactoring of dispatch() 2017-05-04 17:11:08 -04:00
internals.go Some refactoring of dispatch() 2017-05-04 17:11:08 -04:00
internals_test.go Extract squash and tagging from the Dockerfile builder. 2017-05-01 12:07:32 -04:00
internals_unix.go Windows: Fix wildcard expansion after slash in filename 2016-09-14 11:40:57 -07:00
internals_windows.go Windows: Fix wildcard expansion after slash in filename 2016-09-14 11:40:57 -07:00
internals_windows_test.go
mockbackend_test.go Remove ContainerUpdateCmdOnBuild, it does nothing. 2017-05-03 10:59:38 -04:00
shell_parser.go Create a new ShellLex struct which provides the expected interface to Builder. 2017-04-26 19:39:16 -04:00
shell_parser_test.go Create a new ShellLex struct which provides the expected interface to Builder. 2017-04-26 19:39:16 -04:00
support.go
support_test.go
utils_test.go
wordsTest Minor tweaks to quotes in env vars 2017-04-12 12:20:14 -07:00