Skip to content

Commit

Permalink
make tty as an option in docker run
Browse files Browse the repository at this point in the history
  • Loading branch information
lguohan committed Jan 31, 2017
1 parent be8ed80 commit 8c23e15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ MAKEFLAGS += -B

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

DOCKER_BUILD = docker build --no-cache \
--build-arg user=$(USER) \
Expand All @@ -26,7 +26,7 @@ DOCKER_BUILD = docker build --no-cache \

%::
@docker inspect --type image sonic-slave-$(USER) &> /dev/null || $(DOCKER_BUILD)
@$(DOCKER_RUN) make \
@$(DOCKER_RUN) sonic-slave-$(USER) make \
-C sonic \
-f slave.mk \
PLATFORM=$(PLATFORM) \
Expand All @@ -37,4 +37,4 @@ sonic-slave-build :
@$(DOCKER_BUILD)

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

0 comments on commit 8c23e15

Please sign in to comment.