Skip to content

Commit

Permalink
tests: inline dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
  • Loading branch information
laurazard committed May 9, 2023
1 parent a06d32e commit 617ea30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions e2e/cucumber-features/build-contexts.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ Background:
a:
build:
context: .
dockerfile_inline: |
# syntax=docker/dockerfile:1
FROM alpine:latest
COPY --from=dep /etc/hostname /
additional_contexts:
- dep=docker-image://ubuntu:latest
"""
And a dockerfile
"""
# syntax=docker/dockerfile:1
FROM alpine:latest
COPY --from=dep /etc/hostname /
"""

Scenario: Build w/ build context
When I run "compose build"
Expand Down
2 changes: 1 addition & 1 deletion e2e/cucumber-features/ps.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Background:
build:
image: test:latest
build:
context: ./
context: ./
pull:
image: alpine
command: top
Expand Down

0 comments on commit 617ea30

Please sign in to comment.