Skip to content

Commit

Permalink
Add Dockerfile for special file permission test
Browse files Browse the repository at this point in the history
  • Loading branch information
dtaniwaki committed Mar 16, 2019
1 parent da80e15 commit 063b8aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions integration/dockerfiles/Dockerfile_test_cache_perm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Test to make sure the cache works with special file permissions properly.
# If the image is built twice, directory foo should have the sticky bit,
# and file bar should have the setuid and setgid bits.

FROM busybox

RUN mkdir foo && chmod +t foo
RUN touch bar && chmod u+s,g+s bar
1 change: 1 addition & 0 deletions integration/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ func NewDockerFileBuilder(dockerfiles []string) *DockerFileBuilder {
d.TestCacheDockerfiles = map[string]struct{}{
"Dockerfile_test_cache": {},
"Dockerfile_test_cache_install": {},
"Dockerfile_test_cache_perm": {},
}
return &d
}
Expand Down

0 comments on commit 063b8aa

Please sign in to comment.