Skip to content

Commit 17b09ef

Browse files
wendanilguohan
authored andcommitted
[build]: Move the mounting point inside the docker to home directory (#1522)
* Move the mounting point inside the docker to home directory Signed-off-by: Wenda <[email protected]> * Change mount point to src under the home directory Signed-off-by: Wenda <[email protected]>
1 parent 25d73ef commit 17b09ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# * USERNAME: Desired username -- default at rules/config
1515
# * PASSWORD: Desired password -- default at rules/config
1616
# * KEEP_SLAVE_ON: Keeps slave container up after building-process concludes.
17-
# * SOURCE_FOLDER: host path to be mount as /var/src, only effective when KEEP_SLAVE_ON=yes
17+
# * SOURCE_FOLDER: host path to be mount as /var/$(USER)/src, only effective when KEEP_SLAVE_ON=yes
1818
# * SONIC_BUILD_JOB: Specifying number of concurrent build job(s) to run
1919
#
2020
###############################################################################
@@ -85,7 +85,7 @@ SONIC_BUILD_INSTRUCTION := make \
8585
$(DOCKER_BUILD) ; }
8686
ifeq "$(KEEP_SLAVE_ON)" "yes"
8787
ifdef SOURCE_FOLDER
88-
@$(DOCKER_RUN) -v $(SOURCE_FOLDER):/var/src $(SLAVE_IMAGE):$(SLAVE_TAG) bash -c "$(SONIC_BUILD_INSTRUCTION) $@; /bin/bash"
88+
@$(DOCKER_RUN) -v $(SOURCE_FOLDER):/var/$(USER)/src $(SLAVE_IMAGE):$(SLAVE_TAG) bash -c "$(SONIC_BUILD_INSTRUCTION) $@; /bin/bash"
8989
else
9090
@$(DOCKER_RUN) $(SLAVE_IMAGE):$(SLAVE_TAG) bash -c "$(SONIC_BUILD_INSTRUCTION) $@; /bin/bash"
9191
endif

0 commit comments

Comments
 (0)