mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add support for ENV of the form: ENV name=value ...
still supports the old form: ENV name value Also, fixed an issue with the parser where it would ignore lines at the end of the Dockerfile that ended with \ Closes #2333 Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
parent
c8926bb579
commit
1314e1586f
8 changed files with 256 additions and 19 deletions
15
builder/parser/testfiles/env/Dockerfile
vendored
Normal file
15
builder/parser/testfiles/env/Dockerfile
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
FROM ubuntu
|
||||
ENV name value
|
||||
ENV name=value
|
||||
ENV name=value name2=value2
|
||||
ENV name="value value1"
|
||||
ENV name=value\ value2
|
||||
ENV name="value'quote space'value2"
|
||||
ENV name='value"double quote"value2'
|
||||
ENV name=value\ value2 name2=value2\ value3
|
||||
ENV name=value \
|
||||
name1=value1 \
|
||||
name2="value2a \
|
||||
value2b" \
|
||||
name3="value3a\n\"value3b\"" \
|
||||
name4="value4a\\nvalue4b" \
|
||||
Loading…
Add table
Add a link
Reference in a new issue