From b1e29d4ae16e3b10cfb02ca31a38c3eaaf2a94ee Mon Sep 17 00:00:00 2001 From: "Jonathan A. Sternberg" Date: Thu, 24 Dec 2015 13:50:37 -0500 Subject: [PATCH] Use DEBIAN_FRONTEND=noninteractive when using apt-get in Dockerfiles apt-get will attempt to use the dialog frontend by default. When building with docker, error messages get written by debconf when installing some packages because it tries to open the dialog frontend. Set `DEBIAN_FRONTEND=noninteractive` to suppress these unnecessary messages. The dialog frontend shouldn't be getting used anyway. --- Dockerfile_build_ubuntu32 | 2 +- Dockerfile_build_ubuntu64 | 2 +- Dockerfile_build_ubuntu64_git | 2 +- Dockerfile_test_ubuntu32 | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile_build_ubuntu32 b/Dockerfile_build_ubuntu32 index bb0fd65331..26d0777e63 100644 --- a/Dockerfile_build_ubuntu32 +++ b/Dockerfile_build_ubuntu32 @@ -1,6 +1,6 @@ FROM 32bit/ubuntu:14.04 -RUN apt-get update && apt-get install -y \ +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ python-software-properties \ software-properties-common \ wget \ diff --git a/Dockerfile_build_ubuntu64 b/Dockerfile_build_ubuntu64 index 82a6816f4c..a4873b5ace 100644 --- a/Dockerfile_build_ubuntu64 +++ b/Dockerfile_build_ubuntu64 @@ -1,6 +1,6 @@ FROM ubuntu:trusty -RUN apt-get update && apt-get install -y \ +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ python-software-properties \ software-properties-common \ wget \ diff --git a/Dockerfile_build_ubuntu64_git b/Dockerfile_build_ubuntu64_git index a54bbf7190..7059500ab7 100644 --- a/Dockerfile_build_ubuntu64_git +++ b/Dockerfile_build_ubuntu64_git @@ -1,6 +1,6 @@ FROM ubuntu:trusty -RUN apt-get update && apt-get install -y \ +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ python-software-properties \ software-properties-common \ wget \ diff --git a/Dockerfile_test_ubuntu32 b/Dockerfile_test_ubuntu32 index 2bd6b62fc4..af505b5cd4 100644 --- a/Dockerfile_test_ubuntu32 +++ b/Dockerfile_test_ubuntu32 @@ -1,8 +1,8 @@ FROM 32bit/ubuntu:14.04 -RUN apt-get update && apt-get install -y python-software-properties software-properties-common git +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y python-software-properties software-properties-common git RUN add-apt-repository ppa:evarlast/golang1.4 -RUN apt-get update && apt-get install -y -o Dpkg::Options::="--force-overwrite" golang-go +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-overwrite" golang-go ENV GOPATH=/root/go RUN mkdir -p /root/go/src/github.com/influxdata/influxdb