Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=profusion-mobi.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=8XPY2cyT5a5FLnh+sacbrXAU4Jy+73Am45dqkhW9zlk=; b=dp+f2J4sA/FTSZxNB9442Q673kKZSzrRAbxuRX/rQ40xbf4OOjUwQ3wlR35uzECXzu Zxac2JetvcPWACrqgS94BWtxbNrSIY19M/yu6Zop7Or+CO645XN0lq1P6gnO6xmmFdnB Mq0LQX4N1VyG7wivF63rMPwqz22GeMOjtY5nTRugaf56cw8QemwCwgE8HNyDeUYJYWEh zNOVMKRFtzHNw7y317lSG1mVNp0sGk/hkCL4gBgaAmV3kLZ7Rx7m2NvBHEaK3UoK2ikO x48faxVIxIjdIuUaG3tBjV4DbO1+mXcGw44nvbi81WHj9IMN0dinTHcDPSKyZ+EB+TDX V6tA== From: Guilherme Campos Camargo Date: Mon, 7 May 2018 13:25:26 -0300 Message-Id: <20180507162526.17753-1-guicc@profusion.mobi> Subject: [Fuego] [PATCH] Set DEBIAN_FRONTEND=noninteractive globally during build List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org Use ARG DEBIAN_FRONTEND=noninteractive to set apt-get user interface as non-interactive, preventing the warning messages "unable to initialize frontend: Dialog" to show up during build. By using ARG we make sure that the value of DEBIAN_FRONTEND is set only during build, and not on the resulting image, or on builds of images that are based on this one. Signed-off-by: Guilherme Campos Camargo --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 09e3c00..0f3bbb3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,12 +18,14 @@ ENV https_proxy ${HTTP_PROXY} # Prepare basic image # ============================================================================== +ARG DEBIAN_FRONTEND=noninteractive + WORKDIR / RUN echo deb http://httpredir.debian.org/debian jessie main non-free > /etc/apt/sources.list RUN echo deb http://httpredir.debian.org/debian jessie-updates main non-free >> /etc/apt/sources.list RUN echo deb http://security.debian.org/ jessie/updates main >> /etc/apt/sources.list RUN if [ -n "$HTTP_PROXY" ]; then echo 'Acquire::http::proxy "'$HTTP_PROXY'";' > /etc/apt/apt.conf.d/80proxy; fi -RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -yV install \ +RUN apt-get update && apt-get -yV install \ apt-utils daemon gcc make cmake python-paramiko python-lxml python-simplejson \ python-matplotlib python-serial python-yaml python-openpyxl python-requests \ python-reportlab libtool xmlstarlet autoconf automake rsync openjdk-7-jre openjdk-7-jdk \ @@ -37,7 +39,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -yV install \ RUN pip install python-jenkins==0.4.14 RUN pip install filelock RUN pip install flake8 -RUN /bin/bash -c 'echo "dash dash/sh boolean false" | debconf-set-selections ; DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash' +RUN /bin/bash -c 'echo "dash dash/sh boolean false" | debconf-set-selections ; dpkg-reconfigure dash' RUN if [ -n "$HTTP_PROXY" ]; then echo "use_proxy = on" >> /etc/wgetrc; fi RUN if [ -n "$HTTP_PROXY" ]; then echo -e "http_proxy=$HTTP_PROXY\nhttps_proxy=$HTTP_PROXY" >> /etc/environment; fi -- 2.17.0