We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a37365 commit e5965c0Copy full SHA for e5965c0
Makefile.work
@@ -63,9 +63,11 @@ OVERLAY_MODULE_CHECK := lsmod | grep "^overlay " > /dev/null 2>&1 || (echo "ERRO
63
64
BUILD_TIMESTAMP := $(shell date +%Y%m%d\.%H%M%S)
65
66
+GIT_DIRECTORY := $(shell file .git | grep -q ASCII && awk '{split($$2, ary, ".git"); print ary[1]}' .git | xargs realpath || pwd )
67
+
68
DOCKER_RUN := docker run --rm=true --privileged \
- -v $(PWD):/sonic \
- -w /sonic \
69
+ -v $(GIT_DIRECTORY):$(GIT_DIRECTORY) \
70
+ -w $(PWD) \
71
-e "http_proxy=$(http_proxy)" \
72
-e "https_proxy=$(https_proxy)" \
73
-i$(if $(TERM),t,)
0 commit comments