only log build output if capture=true
use stdout.write otherwise
MODIFY
repo2docker/detectors.py
repo2docker/detectors.py
@@ -45,7 +45,12 @@ class DockerBuildPack(BuildPack):
decode=True
):
if 'stream' in progress:
+ if self.capture:
self.log.info(progress['stream'], extra=dict(phase='building'))
+ else:
+ sys.stdout.write(progress['stream'])
+
+_legacybinder_docker_appendix = """
class S2IBuildPack(BuildPack):

only log build output if capture=true

use stdout.write otherwise