Use 'top' instead of 'sleep' as a dummy command
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
b183a66db1
commit
b0cb31c186
16 changed files with 45 additions and 45 deletions
|
|
@ -1,6 +1,6 @@
|
|||
simple:
|
||||
image: busybox:latest
|
||||
command: /bin/sleep 300
|
||||
command: top
|
||||
another:
|
||||
image: busybox:latest
|
||||
command: /bin/sleep 300
|
||||
command: top
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
FROM busybox
|
||||
VOLUME /data
|
||||
CMD sleep 3000
|
||||
CMD top
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
service:
|
||||
image: busybox:latest
|
||||
command: sleep 5
|
||||
command: top
|
||||
|
||||
environment:
|
||||
foo: bar
|
||||
|
|
|
|||
4
tests/fixtures/extends/docker-compose.yml
vendored
4
tests/fixtures/extends/docker-compose.yml
vendored
|
|
@ -2,7 +2,7 @@ myweb:
|
|||
extends:
|
||||
file: common.yml
|
||||
service: web
|
||||
command: sleep 300
|
||||
command: top
|
||||
links:
|
||||
- "mydb:db"
|
||||
environment:
|
||||
|
|
@ -13,4 +13,4 @@ myweb:
|
|||
BAZ: "2"
|
||||
mydb:
|
||||
image: busybox
|
||||
command: sleep 300
|
||||
command: top
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
db:
|
||||
image: busybox:latest
|
||||
command: /bin/sleep 300
|
||||
command: top
|
||||
web:
|
||||
image: busybox:latest
|
||||
command: /bin/sleep 300
|
||||
command: top
|
||||
links:
|
||||
- db:db
|
||||
console:
|
||||
image: busybox:latest
|
||||
command: /bin/sleep 300
|
||||
command: top
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
definedinyamlnotyml:
|
||||
image: busybox:latest
|
||||
command: /bin/sleep 300
|
||||
command: top
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
yetanother:
|
||||
image: busybox:latest
|
||||
command: /bin/sleep 300
|
||||
command: top
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
simple:
|
||||
image: busybox:latest
|
||||
command: /bin/sleep 300
|
||||
command: top
|
||||
another:
|
||||
image: busybox:latest
|
||||
command: /bin/sleep 300
|
||||
command: top
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
simple:
|
||||
image: busybox:latest
|
||||
command: /bin/sleep 300
|
||||
command: top
|
||||
ports:
|
||||
- '3000'
|
||||
- '49152:3001'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
simple:
|
||||
image: busybox:latest
|
||||
command: /bin/sleep 300
|
||||
command: top
|
||||
another:
|
||||
image: busybox:latest
|
||||
command: /bin/sleep 300
|
||||
command: top
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue