moby/builder
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
..
parser Add support for no-arg commands in Dockerfile 2015-02-08 03:36:49 -08:00
dispatchers.go Add support for no-arg commands in Dockerfile 2015-02-08 03:36:49 -08:00
evaluator.go Add support for no-arg commands in Dockerfile 2015-02-08 03:36:49 -08:00
internals.go Merge pull request #10573 from LK4D4/return_attach_to_builder 2015-02-06 14:37:09 -08:00
job.go Deprecating ResolveRepositoryName 2015-01-08 20:14:58 +00:00
MAINTAINERS Modify MAINTAINERS per erikh's suggestion 2015-01-05 10:28:36 -08:00
support.go builder: handle escapes without swallowing all of them. 2014-10-27 17:38:24 +00:00