-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1114 from tejal29/fix_copy
Add more tests for Copy and some fixes.
- Loading branch information
Showing
12 changed files
with
516 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
FROM busybox as t | ||
RUN echo "hello" > /tmp/target | ||
RUN ln -s /tmp/target /tmp/link | ||
|
||
## Relative link | ||
RUN cd tmp && ln -s target relative_link | ||
|
||
RUN mkdir temp | ||
RUN echo "hello" > temp/target | ||
RUN ln -s target temp/link | ||
## Relative link with paths | ||
RUN mkdir workdir && cd workdir && ln -s ../tmp/target relative_dir_link | ||
RUN mkdir workdir && cd workdir && ln -s ../temp/target relative_link | ||
|
||
FROM scratch | ||
COPY --from=t /tmp/link /tmp/ | ||
COPY --from=t /tmp/relative_link /tmp/ | ||
COPY --from=t /workdir/relative_dir_link /workdir/ | ||
COPY --from=t temp/ dest/ | ||
COPY --from=t /workdir/relative_link /workdirAnother/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.