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.
If the WORKDIR is a dangling symlink, meaning the target directory doesn't exit, we'd fail any RUN commands. This changes adds the target directory if it does not exists. Fixes: containers#1569 Tip of the hat to @karelyatin for developing the root of the fix. Signed-off-by: TomSweeneyRedHat <[email protected]>
- Loading branch information
1 parent
e9184ea
commit b893a87
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 |