Skip to content

Commit

Permalink
Merge pull request #5375 from nalind/multistage-copyback-test
Browse files Browse the repository at this point in the history
Add a conformance test for copying to a mounted prior stage
  • Loading branch information
openshift-merge-bot[bot] authored Mar 6, 2024
2 parents 0e0676d + a2f0ebe commit 204cbdb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/conformance/conformance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3081,6 +3081,12 @@ var internalTestCases = []testCase{
contextDir: "env/precedence",
dockerUseBuildKit: true,
},

{
name: "multistage-copyback",
contextDir: "multistage/copyback",
dockerUseBuildKit: true,
},
}

func TestCommit(t *testing.T) {
Expand Down
6 changes: 6 additions & 0 deletions tests/conformance/testdata/multistage/copyback/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM alpine AS base
RUN touch -r /etc/os-release /1.txt
FROM alpine AS interloper
RUN --mount=type=bind,from=base,source=/,destination=/base,rw touch -r /etc/os-release /base/2.txt
FROM base
RUN --mount=type=bind,from=interloper,source=/etc,destination=/etc2 touch -r /etc2/os-release /3.txt

1 comment on commit 204cbdb

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman-next COPR build failed. @containers/packit-build please check.

Please sign in to comment.