Skip to content
Permalink
Browse files

envsetup: Add a flag to launch docker with or without pseudo-tty

Signed-off-by: Khem Raj <raj.khem@gmail.com>
  • Loading branch information
kraj committed Jan 29, 2020
1 parent ada9581 commit 7f742691f081ffe514c7d598ef12b29ac4ee2cf2
Showing with 14 additions and 1 deletion.
  1. +7 −1 envsetup.sh
  2. +7 −0 local.sh.example
@@ -474,6 +474,12 @@ dkr() {
else
shift
fi
if [ "$DOCKER_PSEUDO_TTY" = "no" ]; then
PSEUDO_TTY=""
else
PSEUDO_TTY="-t"
fi

SSH_AUTH_DIR=~/

unset MAP_DL_DIR
@@ -487,7 +493,7 @@ dkr() {
SSH_AUTH_DIR=$(readlink -f $SSH_AUTH_SOCK)
fi

docker run --rm -it \
docker run --rm -i $PSEUDO_TTY \
-v $(pwd):$(pwd) \
-v ~/.ssh:/home/build/.ssh \
-v ~/.gitconfig:/home/build/.gitconfig \
@@ -18,3 +18,10 @@

# configure docker container to run bitbake in
#export DOCKER_REPO=yoedistro/yoe-build:buster

# Flag to control docker launch with pseudo-tty
# when output is piped or redirected to files then
# then docker should be launched without tty
# otherwise it will emit all control characters into
# redirected log files, default is 'yes'
#export DOCKER_PSEUDO_TTY=no

0 comments on commit 7f74269

Please sign in to comment.
You can’t perform that action at this time.