moby/builder/dockerfile
Sebastiaan van Stijn a3c97beee0
image: implement CheckOS, deprecate pkg/system IsOSSupported
Implement a function that returns an error to replace existing uses of
the IsOSSupported utility, where callers had to produce the error after
checking.

The IsOSSupported function was used in combination with images, so implementing
a utility in "image" to prevent having to import pkg/system (which contains many
unrelated functions)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-09-07 22:14:44 +02:00
..
buildargs.go Sort unconsumed build arguments before usage 2023-07-09 03:23:06 -04:00
buildargs_test.go builder/dockerfile: add "ALL_PROXY" to list of default build args 2021-04-24 18:25:16 +02:00
builder.go Switch all logging to use containerd log pkg 2023-06-24 00:23:44 +00:00
builder_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
builder_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
containerbackend.go classic builder: align "removing intermediate container" output 2023-08-18 21:27:56 +02:00
copy.go builder/dockerfile: format code with gofumpt 2023-06-29 00:25:21 +02:00
copy_test.go builder/dockerfile: use string-literals for easier grep'ing 2023-07-05 12:25:59 +02:00
copy_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
copy_windows.go builder/dockerfile: use string-literals for easier grep'ing 2023-07-05 12:25:59 +02:00
dispatchers.go image: implement CheckOS, deprecate pkg/system IsOSSupported 2023-09-07 22:14:44 +02:00
dispatchers_test.go builder/dockerfile: format code with gofumpt 2023-06-29 00:25:21 +02:00
dispatchers_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
dispatchers_unix_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
dispatchers_windows.go builder/dockerfile: format code with gofumpt 2023-06-29 00:25:21 +02:00
dispatchers_windows_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
evaluator.go image: implement CheckOS, deprecate pkg/system IsOSSupported 2023-09-07 22:14:44 +02:00
evaluator_test.go builder/dockerfile: format code with gofumpt 2023-06-29 00:25:21 +02:00
imagecontext.go Switch all logging to use containerd log pkg 2023-06-24 00:23:44 +00:00
imagecontext_test.go builder: Don't store context in struct 2022-11-03 12:22:46 +01:00
imageprobe.go Switch all logging to use containerd log pkg 2023-06-24 00:23:44 +00:00
internals.go Switch all logging to use containerd log pkg 2023-06-24 00:23:44 +00:00
internals_linux.go imageservice: Add context to various methods 2022-11-03 12:22:40 +01:00
internals_linux_test.go builder/dockerfile: format code with gofumpt 2023-06-29 00:25:21 +02:00
internals_test.go builder/dockerfile: format code with gofumpt 2023-06-29 00:25:21 +02:00
internals_windows.go builder/dockerfile: format code with gofumpt 2023-06-29 00:25:21 +02:00
internals_windows_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
metrics.go goimports: fix imports 2019-09-18 12:56:54 +02:00
mockbackend_test.go builder/dockerfile: format code with gofumpt 2023-06-29 00:25:21 +02:00
utils_test.go builder/dockerfile: format code with gofumpt 2023-06-29 00:25:21 +02:00