Skip to content

Commit

Permalink
test: add test case for setcap in Dockerfile
Browse files Browse the repository at this point in the history
This is a followup of GoogleContainerTools#1994. This test runs a Dockerfile where setcap is
executed. Without the fix in GoogleContainerTools#1994, the last command won't generate any
diff and thus is discarded by kaniko and thus should fail this test.
  • Loading branch information
zhouhaibing089 committed May 9, 2022
1 parent 816e6d5 commit ba7730b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integration/dockerfiles-with-context/issue-1851/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM wildwildangel/setcap-static:sha-a5c7425
ADD test-file /usr/bin/test-file
RUN /setcap-static cap_net_bind_service=+ep /usr/bin/test-file
Empty file.

0 comments on commit ba7730b

Please sign in to comment.