1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/builder/parser
Doug Davis e4f02abb51 Add support for no-arg commands in Dockerfile
We're hoping to add some new commands that don't have any args so this
PR will enable that by removing all of the hard-coded checks that require
commands to have at least one arg.  It also adds some checks to each
command so we're consistent in the error message we get.  Added a test
for this too.

We actually had this check in at least 3 different places (twice in the
parser and once in most cmds), this removes 2 of them (the parser ones).

Had to remove/modify some testcases because its now legal to have certain
commands w/o args - e.g. RUN. This was actually inconsistent because
we used to allow "RUN []" but not "RUN" even though they would generate
(almost) the same net result.  Now we're consistent.

Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-02-08 03:36:49 -08:00
..
dumper builder/parser/dumper: Handle newlines appropriately. 2014-09-11 06:00:24 -07:00
testfiles Merge pull request #9826 from icecrime/8318_whitespace_add_copy 2015-01-19 18:37:53 -05:00
testfiles-negative Add support for no-arg commands in Dockerfile 2015-02-08 03:36:49 -08:00
json_test.go Adjust builder to validate that JSON in Dockerfiles are arrays of strings and nothing else to match how we describe them to people (and what all our existing tests already assumed) 2015-01-05 14:31:05 -07:00
line_parsers.go Add support for no-arg commands in Dockerfile 2015-02-08 03:36:49 -08:00
parser.go Add support for no-arg commands in Dockerfile 2015-02-08 03:36:49 -08:00
parser_test.go Simplify builder TestTestData slightly by using ioutil.ReadFile instead of os.Open+ioutil.ReadAll 2015-01-02 22:38:52 -07:00
utils.go Add support for no-arg commands in Dockerfile 2015-02-08 03:36:49 -08:00