Skip to content

Commit

Permalink
Merge pull request knative#253 from openshift-cherrypick-robot/cherry…
Browse files Browse the repository at this point in the history
…-pick-251-to-release-v1.8

[release-v1.8] Delete the created golang cache directory during docker build
  • Loading branch information
ReToCode authored Apr 5, 2023
2 parents c780d74 + a5ff575 commit d5696b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openshift/ci-operator/build-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ RUN yum install -y kubectl httpd-tools
RUN GOFLAGS='' go install github.com/mikefarah/yq/v3@latest
RUN GOFLAGS='' go install knative.dev/test-infra/tools/kntest/cmd/kntest@latest

# go install creates $GOPATH/.cache with root permissions, we delete it here
# to avoid permission issues with the runtime users
RUN rm -rf $GOPATH/.cache

# Allow runtime users to add entries to /etc/passwd
RUN chmod g+rw /etc/passwd

0 comments on commit d5696b6

Please sign in to comment.