Skip to content

Commit

Permalink
fix(ci): Docker build for issue 1837 (GoogleContainerTools#2095)
Browse files Browse the repository at this point in the history
* fix: Docker build for issue 1837

* fix: Linting
  • Loading branch information
gabyx authored May 17, 2022
1 parent 7b50fc8 commit 28432d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions integration/dockerfiles/Dockerfile_test_issue_1837
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM registry.access.redhat.com/ubi8/ubi:8.2 AS BASE
FROM registry.access.redhat.com/ubi8/ubi:8.2 AS base
# Install ping
RUN yum --disableplugin=subscription-manager install -y iputils
RUN setcap cap_net_raw+ep /bin/ping || exit 1

FROM BASE
RUN set -e && [ ! -z "$(getcap /bin/ping)" ] || exit 1
FROM base
RUN [ ! -z "$(getcap /bin/ping)" ] || exit 1
2 changes: 1 addition & 1 deletion pkg/executor/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ func (s *stageBuilder) build() error {
logrus.Debugf("build: cache key for command %v %v", command.String(), ck)

// Push layer to cache (in parallel) now along with new config file
if command.ShouldCacheOutput() && ! s.opts.NoPushCache {
if command.ShouldCacheOutput() && !s.opts.NoPushCache {
cacheGroup.Go(func() error {
return s.pushLayerToCache(s.opts, ck, tarPath, command.String())
})
Expand Down

0 comments on commit 28432d3

Please sign in to comment.