Skip to content
Permalink
Browse files

make: run as user

  • Loading branch information...
BenTheElder committed May 10, 2019
1 parent 69f8a8c commit a9aa3614231becac3ec30ff11d868cc7d598e619
Showing with 3 additions and 0 deletions.
  1. +3 −0 Makefile
@@ -35,6 +35,8 @@ CACHE_VOLUME=kind-build-cache
CONTAINER_REPO_DIR=/src/kind
CONTAINER_OUT_DIR=$(CONTAINER_REPO_DIR)/bin
OUT_DIR=$(REPO_ROOT)/bin
UID:=$(shell id -u)
GID:=$(shell id -g)

# standard "make" target -> builds
all: build
@@ -69,6 +71,7 @@ kind: make-cache out-dir
-e CGO_ENABLED=0 \
-e GOOS=$(GOOS) \
-e GOARCH=$(GOARCH) \
--user $(UID):$(GID) \
$(GO_IMAGE) \
go build -v -o /out/kind .

0 comments on commit a9aa361

Please sign in to comment.
You can’t perform that action at this time.