Merge pull request #1213 from moysesb/relative_build
Make value of 'build:' relative to the yml file.
(cherry picked from commit 0f70b8638f)
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
b24a60ba9f
commit
e4e802d1f8
7 changed files with 56 additions and 4 deletions
2
tests/fixtures/build-ctx/Dockerfile
vendored
Normal file
2
tests/fixtures/build-ctx/Dockerfile
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
FROM busybox:latest
|
||||
CMD echo "success"
|
||||
2
tests/fixtures/build-path/docker-compose.yml
vendored
Normal file
2
tests/fixtures/build-path/docker-compose.yml
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
foo:
|
||||
build: ../build-ctx/
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
service:
|
||||
build: tests/fixtures/dockerfile_with_entrypoint
|
||||
build: .
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
simple:
|
||||
build: tests/fixtures/simple-dockerfile
|
||||
build: .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue