moby--moby/builder/dockerfile
Chris Price c21a3cf432 Add variant to image.Image and legacy builder
This commit adds the image variant to the image.(Image) type and
updates related functionality. Images built from another will
inherit the OS, architecture and variant.

Note that if a base image does not specify an architecture, the
local machine's architecture is used for inherited images. On the
other hand, the variant is set equal to the parent image's variant,
even when the parent image's variant is unset.

The legacy builder is also updated to allow the user to specify
a '--platform' argument on the command line when creating an image
FROM scratch. A complete platform specification, including variant,
is supported. The built image will include the variant, as will any
derived images.

Signed-off-by: Chris Price <chris.price@docker.com>
2019-09-24 22:18:16 +00:00
..
buildargs.go fix typos 2018-09-01 21:26:38 +08:00
buildargs_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
builder.go Add ADD/COPY --chown flag support to Windows 2018-08-13 21:59:11 -07:00
builder_unix.go Add canonical import comment 2018-02-05 16:51:57 -05:00
builder_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
clientsession.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
containerbackend.go Windows: (WCOW) Generate OCI spec that remote runtime can escape 2019-03-12 18:41:55 -07:00
copy.go fix build after merge of outdated PR 2019-08-28 03:14:28 +02:00
copy_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
copy_unix.go builder/copy-unix: fix filepath.Walk args 2019-09-18 12:57:18 +02:00
copy_windows.go goimports: fix imports 2019-09-18 12:56:54 +02:00
dispatchers.go Merge pull request #38599 from thaJeztah/builder_fix_copy_permissions 2019-03-22 09:38:13 -07:00
dispatchers_test.go Windows: (WCOW) Generate OCI spec that remote runtime can escape 2019-03-12 18:41:55 -07:00
dispatchers_unix.go Windows: (WCOW) Generate OCI spec that remote runtime can escape 2019-03-12 18:41:55 -07:00
dispatchers_unix_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
dispatchers_windows.go Windows: (WCOW) Generate OCI spec that remote runtime can escape 2019-03-12 18:41:55 -07:00
dispatchers_windows_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
evaluator.go vendor: use dockerfile parser from buildkit 2018-06-02 11:10:34 -07:00
evaluator_test.go TestDispatch: refactor to use subtests again, and fix linting (structcheck) 2019-09-11 11:13:03 +02:00
imagecontext.go Add variant to image.Image and legacy builder 2019-09-24 22:18:16 +00:00
imagecontext_test.go Add variant to image.Image and legacy builder 2019-09-24 22:18:16 +00:00
imageprobe.go Add canonical import comment 2018-02-05 16:51:57 -05:00
internals.go Add variant to image.Image and legacy builder 2019-09-24 22:18:16 +00:00
internals_linux.go Add ADD/COPY --chown flag support to Windows 2018-08-13 21:59:11 -07:00
internals_linux_test.go Add ADD/COPY --chown flag support to Windows 2018-08-13 21:59:11 -07:00
internals_test.go Add variant to image.Image and legacy builder 2019-09-24 22:18:16 +00:00
internals_windows.go Windows: (WCOW) Generate OCI spec that remote runtime can escape 2019-03-12 18:41:55 -07:00
internals_windows_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
metrics.go goimports: fix imports 2019-09-18 12:56:54 +02:00
mockbackend_test.go Add variant to image.Image and legacy builder 2019-09-24 22:18:16 +00:00
utils_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00