Skip to content

Commit d08bb91

Browse files
committed
Fix user in build-in-docker
Signed-off-by: Patrik Cyvoct <[email protected]>
1 parent 06949df commit d08bb91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ docker-builder:
197197

198198
build-in-docker: clean docker-builder
199199
docker run \
200-
-e CC=$(CC) -e GOARM=$(GOARM) -e GOARCH=$(ARCH) \
200+
-e CC=$(CC) -e GOARM=$(GOARM) -e GOARCH=$(ARCH) -e GOCACHE=/go/.cache/go-build \
201+
-u $(shell id -u ${USER}):$(shell id -g ${USER}) \
201202
-v `pwd`:/gopath/src/k8s.io/node-problem-detector/ npd-builder:latest bash \
202203
-c 'cd /gopath/src/k8s.io/node-problem-detector/ && make build-binaries'
203204

0 commit comments

Comments
 (0)