build: Add option to use rootless containers.
This commit is contained in:
parent
0e897ff8b7
commit
bbf68812bc
1 changed files with 6 additions and 2 deletions
|
@ -55,8 +55,12 @@ else
|
||||||
DOCKER_OPTS := $(CCACHE_ENV) -e CCACHE_DISABLE=1 $(DOCKER_OPTS)
|
DOCKER_OPTS := $(CCACHE_ENV) -e CCACHE_DISABLE=1 $(DOCKER_OPTS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DOCKER_BASE = docker run --rm -e HOME -e USER -e USERID=$(shell id -u) -u $(shell id -u):$(shell id -g) \
|
ifneq ($(ROOTLESS_CONTAINER),1)
|
||||||
-v $(SRC):$(SRC) -v $(OBJ):$(OBJ) -w $(OBJ) -e MAKEFLAGS \
|
DOCKER_OPTS := -e HOME -e USER -e USERID=$(shell id -u) -u $(shell id -u):$(shell id -g) $(DOCKER_OPTS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
DOCKER_BASE = docker run --rm -v $(SRC):$(SRC) -v $(OBJ):$(OBJ) \
|
||||||
|
-w $(OBJ) -e MAKEFLAGS \
|
||||||
$(DOCKER_OPTS) $(STEAMRT_IMAGE)
|
$(DOCKER_OPTS) $(STEAMRT_IMAGE)
|
||||||
|
|
||||||
STEAMRT_NAME ?= soldier
|
STEAMRT_NAME ?= soldier
|
||||||
|
|
Loading…
Reference in a new issue