File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ DOCKER_SHELLTEST_BUILD_ARGS :=-f ${ROOT_DIR}/Dockerfile --target shelltest -t sh
1010EXAMPLE_FILES := $(shell find ${ROOT_DIR}/../examples -name "* .yaml" -exec basename {} \; | sort)
1111$(shell mkdir -p out)
1212
13+ # User to run as in docker images.
14+ DOCKER_USER =$(shell id -u) :$(shell id -g)
15+
1316GO = go
1417
1518TOOLS = $(CURDIR ) /.tools
@@ -49,7 +52,7 @@ validator-build-shelltest-image:
4952 docker build ${DOCKER_SHELLTEST_BUILD_ARGS} ${ROOT_DIR}
5053
5154validator-run-shelltests : validator-build-shelltest-image
52- docker run -v ${PARENT_DIR} :/root shelltest:${CURRENT_GIT_REF} -- --plain /root/validator/shelltests
55+ docker run -u $( DOCKER_USER ) - v ${PARENT_DIR} :/root shelltest:${CURRENT_GIT_REF} -- --plain /root/validator/shelltests
5356
5457.PHONY : govulncheck
5558govulncheck : $(TOOLS ) /govulncheck
You can’t perform that action at this time.
0 commit comments