[Makefile]: Set build directory as docker workdir (#832)
Signed-off-by: marian-pritsak <marianp@mellanox.com>
This commit is contained in:
parent
bc4ee14340
commit
7cf8479182
2
Makefile
2
Makefile
@ -14,6 +14,7 @@ SLAVE_IMAGE = sonic-slave-$(USER)
|
||||
|
||||
DOCKER_RUN := docker run --rm=true --privileged \
|
||||
-v $(PWD):/sonic \
|
||||
-w /sonic \
|
||||
-i$(if $(TERM),t,)
|
||||
|
||||
DOCKER_BUILD = docker build --no-cache \
|
||||
@ -34,7 +35,6 @@ DOCKER_BUILD = docker build --no-cache \
|
||||
{ echo Image $(SLAVE_IMAGE):$(SLAVE_TAG) not found. Building... ; \
|
||||
$(DOCKER_BUILD) ; }
|
||||
@$(DOCKER_RUN) $(SLAVE_IMAGE):$(SLAVE_TAG) make \
|
||||
-C sonic \
|
||||
-f slave.mk \
|
||||
PLATFORM=$(PLATFORM) \
|
||||
BUILD_NUMBER=$(BUILD_NUMBER) \
|
||||
|
Loading…
Reference in New Issue
Block a user