forked from containers/buildah
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When the WORKDIR is a symlink and the target directory does not exist, RUN commands would fail. If the target doesn't exist, create the directory in the container. Fixes: containers#1569 Tip of the hat to @karelyatin for the initial fix Signed-off-by: TomSweeneyRedHat <[email protected]>
- Loading branch information
1 parent
8b4ada2
commit 4fbef97
Showing
3 changed files
with
31 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# No directory created for the target of the symlink | ||
FROM alpine | ||
RUN ln -sf /var/lib/tempest /tempest | ||
WORKDIR /tempest | ||
RUN touch /etc/notareal.conf | ||
RUN chmod 664 /etc/notareal.conf | ||
COPY Dockerfile-2 ./Dockerfile-2 |