Make fig run COMMAND parameter optional.
This behaves more like the native docker client, where the absence of a command means docker runs the CMD in the Dockerfile. If a command is defined in fig.yml this is used instead. Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
This commit is contained in:
parent
dd5c2e8767
commit
ef2fb77c1d
3 changed files with 39 additions and 9 deletions
5
tests/fixtures/commands-figfile/fig.yml
vendored
Normal file
5
tests/fixtures/commands-figfile/fig.yml
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
implicit:
|
||||
image: figtest_test
|
||||
explicit:
|
||||
image: figtest_test
|
||||
command: [ "/bin/true" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue