Use current user at build container runtime
Using the current user id and group removes the need to use `sudo` when cleaning up build artifacts from the docker build stage. Issue: #355
This commit is contained in:
parent
5f1d61a3ba
commit
f74a77d80b
1
Makefile
1
Makefile
@ -103,6 +103,7 @@ uncached-docker-build-toolchain:
|
|||||||
docker-build-all:
|
docker-build-all:
|
||||||
docker run --rm -v "$(CURDIR)/builds:/builds" \
|
docker run --rm -v "$(CURDIR)/builds:/builds" \
|
||||||
-v "$(CURDIR):/solo" \
|
-v "$(CURDIR):/solo" \
|
||||||
|
-u $(shell id -u ${USER}):$(shell id -g ${USER}) \
|
||||||
$(DOCKER_TOOLCHAIN_IMAGE) "solo/in-docker-build.sh" ${SOLO_VERSION_FULL}
|
$(DOCKER_TOOLCHAIN_IMAGE) "solo/in-docker-build.sh" ${SOLO_VERSION_FULL}
|
||||||
|
|
||||||
CPPCHECK_FLAGS=--quiet --error-exitcode=2
|
CPPCHECK_FLAGS=--quiet --error-exitcode=2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user