moby/builder/dockerfile
Thomas Leonard 5592ee4d07 Fix exec form of HEALTHCHECK CMD
We attached the JSON flag to the wrong AST node, causing Docker to treat
the exec form ["binary", "arg"] as if the shell form "binary arg" had
been used. This failed if "ls" was not present.

Added a test to detect this.

Fixes #26174

Signed-off-by: Thomas Leonard <thomas.leonard@docker.com>
(cherry picked from commit e95b6b51da)
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-09-26 19:35:24 -07:00
..
command Builder default shell 2016-06-03 13:54:31 -07:00
parser Fix exec form of HEALTHCHECK CMD 2016-09-26 19:35:24 -07:00
bflag.go Fix typos found across repository 2015-12-13 18:04:12 +02:00
bflag_test.go Move builder files to builder/dockerfile 2015-10-05 18:26:47 -04:00
builder.go Move directive out of globals 2016-07-27 14:51:42 -07:00
builder_unix.go Builder default shell 2016-06-03 13:54:31 -07:00
builder_windows.go Builder default shell 2016-06-03 13:54:31 -07:00
dispatchers.go Builder default shell 2016-06-03 13:54:31 -07:00
dispatchers_unix.go Builder default shell 2016-06-03 13:54:31 -07:00
dispatchers_windows.go Builder default shell 2016-06-03 13:54:31 -07:00
dispatchers_windows_test.go Windows: Reduce CLI time, move some to unit tests 2016-05-06 12:26:08 -07:00
envVarTest Allow for env vars to have spaces in some cases 2015-11-09 12:42:56 -08:00
evaluator.go Builder default shell 2016-06-03 13:54:31 -07:00
evaluator_test.go Move directive out of globals 2016-07-27 14:51:42 -07:00
evaluator_unix.go Enabling expose support for Windows TP5 2016-03-30 17:25:41 -07:00
evaluator_windows.go Windows: Support ARG in builder 2016-05-04 14:32:23 -07:00
internals.go Move directive out of globals 2016-07-27 14:51:42 -07:00
internals_test.go Reimplementing builder tests for Dockerfile outside context as a unit test 2016-06-05 08:39:06 +02:00
internals_unix.go Windows: Reduce CLI time, move some to unit tests 2016-05-06 12:26:08 -07:00
internals_windows.go Windows: Reduce CLI time, move some to unit tests 2016-05-06 12:26:08 -07:00
internals_windows_test.go Windows: Reduce CLI time, move some to unit tests 2016-05-06 12:26:08 -07:00
shell_parser.go Allow for env vars to have spaces in some cases 2015-11-09 12:42:56 -08:00
shell_parser_test.go Allow for env vars to have spaces in some cases 2015-11-09 12:42:56 -08:00
support.go Builder default shell 2016-06-03 13:54:31 -07:00
support_test.go Unit tests for builder/dockerfile/support 2016-04-16 00:19:58 +02:00
wordsTest Allow for env vars to have spaces in some cases 2015-11-09 12:42:56 -08:00