You've already forked dcmerge
feat: support service.command
This patch extends dcmerge to support the command attribut of a defined service.
For example:
```yaml
services:
busybox
command: [ "/usr/bin/cp", "--recursive", "--force", "/tmp/bar.txt", "/tmp/foo.txt"]
image: library/busybox:latest
```
The command attribute is interpreted as a whole. This means that individual
arguments are not merged as a comparison, as this would change the meaning of
the command attribute.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
services:
|
||||
frontend:
|
||||
command: [ "/usr/bin/cp", "--recursive", "--force", "/tmp/foo.txt", "/tmp/bar.txt" ]
|
||||
image: library/frontend:latest
|
||||
@@ -0,0 +1,4 @@
|
||||
services:
|
||||
frontend:
|
||||
command: [ "/usr/bin/cp", "--recursive", "--force", "/tmp/bar.txt", "/tmp/foo.txt"]
|
||||
image: library/frontend:latest
|
||||
@@ -0,0 +1,8 @@
|
||||
services:
|
||||
backend:
|
||||
image: library/backend:latest
|
||||
frontend:
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_completed_successfully
|
||||
image: library/frontend:latest
|
||||
Reference in New Issue
Block a user