From bf28474f32bd5511125b57684a4eba9d4531754e Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Wed, 4 Nov 2015 15:03:57 -0800 Subject: [PATCH] Fix monad-run Use a non-interactive tty with monad-run, add monad-attach to run without a tty --- monad-docker.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/monad-docker.sh b/monad-docker.sh index 676093260f..2fbd253919 100644 --- a/monad-docker.sh +++ b/monad-docker.sh @@ -1,15 +1,20 @@ -# docker run magrathea without tty +# docker run magrathea with a non-interactive tty monad-run() { - monad-docker-run "--attach STDOUT --attach STDERR" $* + monad-docker-run "--tty" $* } # docker run magrathea with interactive tty -monad-tty() +monad-it() { monad-docker-run "--interactive --tty" $* } +monad-attach() +{ + monad-docker-run "--attach STDOUT --attach STDERR" $* +} + # runs ephemeral andschwa/magrathea docker container with local # directory mounted and workdir set to /opt monad-docker-run()