From fc0d37f881b90aa9db1138369b6388acdbde517a Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Thu, 2 Jul 2015 15:10:34 -0700 Subject: [PATCH] added tty flag --- shared/build/build.go | 1 + shared/build/script/docker.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/build/build.go b/shared/build/build.go index cb2f60fa6..0a0265ab4 100644 --- a/shared/build/build.go +++ b/shared/build/build.go @@ -322,6 +322,7 @@ func (b *Builder) run() error { AttachStdin: false, AttachStdout: true, AttachStderr: true, + Tty: script.DockerTty(b.Build.Docker), } // configure if Docker should run in privileged mode diff --git a/shared/build/script/docker.go b/shared/build/script/docker.go index c06e9e4d2..a61967922 100644 --- a/shared/build/script/docker.go +++ b/shared/build/script/docker.go @@ -43,7 +43,7 @@ func DockerHostname(d *Docker) string { // DockerTty returns true if the build // should allocate a pseudo tty -func DockerTty(d *Docker) string { +func DockerTty(d *Docker) bool { if d == nil { return false }