Skip to contentSkip to conversation

Dockerfile: enable colored output

RFC PATCH New Heinrich Schuchardt 2 participants 2 messages Oct 6, 2019

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 Dockerfile: enable colored output

Set environment variables needed for colored output.

---
Hello Tom,

I do not have my own Gitlab to test this. But we should get a more legible output with these variables set.

Best regards

Heinrich

---
 Dockerfile | 4 ++++
 1 file changed, 4 insertions(+)
Dockerfile +4 -0
index 1d7a3da..7df9e71 100644
@@ -6,6 +6,10 @@ FROM ubuntu:xenial-20190720
 MAINTAINER Tom Rini <[email protected]>
 LABEL Description=" This image is for building U-Boot inside a container"
 
+# Let's have colored output
+ENV TERM=xterm-256color
+ENV PYTEST_ADDOPTS="--color=yes"
+
 # Make sure apt is happy
 ENV DEBIAN_FRONTEND=noninteractive
 

--
2.23.0

#1 lore raw

RFC PATCH 1/1 Dockerfile: enable colored output

Quoted 8 lines · Heinrich Schuchardt

Set environment variables needed for colored output.

---
Hello Tom,

I do not have my own Gitlab to test this. But we should get a more legible output with these variables set.

You can build your own images, push those and have your branch use them, as that's how I test my own Docker changes. If you can't easily do that however, I'll give this a spin. Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20191006/1e27fb62/attachment.sig>