Skip to content

Commit

Permalink
Use DEBIAN_FRONTEND=noninteractive when using apt-get in Dockerfiles
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jsternberg committed Feb 19, 2016
1 parent 645eb44 commit b1e29d4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 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 \
Expand Down
2 changes: 1 addition & 1 deletion 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 \
Expand Down
2 changes: 1 addition & 1 deletion 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 \
Expand Down
4 changes: 2 additions & 2 deletions 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
Expand Down

0 comments on commit b1e29d4

Please sign in to comment.