Skip to content

Commit

Permalink
precreate and set permissions for /workspace/.kube directory (#1445)
Browse files Browse the repository at this point in the history
Signed-off-by: Subbarao Meduri <smeduri@redhat.com>
  • Loading branch information
subbarao-meduri committed May 21, 2024
1 parent 1881aa2 commit 442f714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ RUN go install github.com/onsi/ginkgo/ginkgo@v1.14.2 && go mod vendor && ginkgo
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

# pre-create directories and set permissions
RUN mkdir -p /resources /results && \
chown -R 1001:1001 /resources /results
RUN mkdir -p /resources /results /workspace/.kube && \
chown -R 1001:1001 /resources /results /workspace/.kube

# run as non-root
USER 1001:1001
Expand Down

0 comments on commit 442f714

Please sign in to comment.