Skip to content

Commit 8c23e15

Browse files
committed
make tty as an option in docker run
1 parent be8ed80 commit 8c23e15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ MAKEFLAGS += -B
1111

1212
DOCKER_RUN := docker run --rm=true --privileged \
1313
-v $(PWD):/sonic \
14-
-it sonic-slave-$(USER)
14+
-i$(SONIC_SLAVE_TTY)
1515

1616
DOCKER_BUILD = docker build --no-cache \
1717
--build-arg user=$(USER) \
@@ -26,7 +26,7 @@ DOCKER_BUILD = docker build --no-cache \
2626

2727
%::
2828
@docker inspect --type image sonic-slave-$(USER) &> /dev/null || $(DOCKER_BUILD)
29-
@$(DOCKER_RUN) make \
29+
@$(DOCKER_RUN) sonic-slave-$(USER) make \
3030
-C sonic \
3131
-f slave.mk \
3232
PLATFORM=$(PLATFORM) \
@@ -37,4 +37,4 @@ sonic-slave-build :
3737
@$(DOCKER_BUILD)
3838

3939
sonic-slave-bash :
40-
@$(DOCKER_RUN) bash
40+
@$(DOCKER_RUN) -t sonic-slave-$(USER) bash

0 commit comments

Comments
 (0)