Set DEBIAN_FRONTEND=noninteractive globally during build
PATCH 1/1 Set DEBIAN_FRONTEND=noninteractive globally during build
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.
--- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Dockerfile +4 -2
@@ -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
Signature · 1 line
2.17.0
[email protected]
AppliedApplied.
Thanks.
-- Tim
Quoted 73 lines
-----Original Message-----
From: [email protected] [mailto:fuego- [email protected]] On Behalf Of Guilherme Campos Camargo
Sent: Monday, May 07, 2018 9:25 AM
To: [email protected]
Subject: [Fuego] [PATCH] Set DEBIAN_FRONTEND=noninteractive globally during buildUse 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_FRONTENDis 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 <[email protected]>--- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)Dockerfile +0
-0@@ -18,12 +18,14 @@ ENV https_proxy ${HTTP_PROXY} # Prepare basic image #==========================================================
====================Dockerfile +2
-0+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 \Dockerfile +1
-0+RUN apt-get update && apt-get -yV install \ apt-utils daemon gcc make cmake python-paramiko python-lxmlpython-simplejson \
python-matplotlib python-serial python-yaml python-openpyxl
python-requests \
python-reportlab libtool xmlstarlet autoconf automake rsync
openjdk-7-jre openjdk-7-jdk \Dockerfile +0
-1@@ -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_______________________________________________
Fuego mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/fuego