Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
Replace sudo chown with --user flag in docker (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiachengxu committed Jul 24, 2020
1 parent b0d7847 commit 0ab9933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -119,9 +119,9 @@ ifdef CI
@hack/proto-codegen.sh
else
@docker run --rm -e CI=true -w /src -v $(PWD):/src \
--user "$(id -u):$(id -g)" \
quay.io/kubecarrier/dev:${DEV_IMAGE_TAG} \
make generate-grpc
@sudo chown -R "$(shell id -u):$(shell id -g)" .
endif
.PHONY: generate-grpc

Expand All @@ -132,9 +132,9 @@ ifdef CI
@FIX_GOLDEN=1 go test ./pkg/internal/resources/...
else
@docker run --rm -e CI=true -w /src -v $(PWD):/src \
--user "$(id -u):$(id -g)" \
quay.io/kubecarrier/dev:${DEV_IMAGE_TAG} \
make generate-config
@sudo chown -R "$(shell id -u):$(shell id -g)" .
endif
.PHONY: generate-config

Expand Down

0 comments on commit 0ab9933

Please sign in to comment.