[All Dockerfiles]: Prevent apt asking questions on the console (#300)

Add noninteractive setting into every Dockerfile in the repo

Signed-off-by: Pavel Shirshov pavelsh@microsoft.com
This commit is contained in:
pavel-shirshov 2017-02-16 21:48:49 -08:00 committed by lguohan
parent 8a24c05f04
commit a845740543
24 changed files with 73 additions and 0 deletions

View File

@ -13,6 +13,9 @@ RUN rm -rf \
/var/cache/man/* \ /var/cache/man/* \
/usr/share/locale/* /usr/share/locale/*
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
## Set the apt source ## Set the apt source
COPY sources.list /etc/apt/sources.list COPY sources.list /etc/apt/sources.list
COPY dpkg_01_drop /etc/dpkg/dpkg.cfg.d/01_drop COPY dpkg_01_drop /etc/dpkg/dpkg.cfg.d/01_drop

View File

@ -2,10 +2,14 @@ FROM docker-base
MAINTAINER Xudong Wu MAINTAINER Xudong Wu
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
## Set the apt source ## Set the apt source
RUN apt-get clean && apt-get update RUN apt-get clean && apt-get update
COPY deps /deps COPY deps /deps
RUN dpkg -i /deps/libopennsl_*.deb; \ RUN dpkg -i /deps/libopennsl_*.deb; \
dpkg -i /deps/libsaibcm_*.deb; \ dpkg -i /deps/libsaibcm_*.deb; \
apt-get -y install -f apt-get -y install -f

View File

@ -1,5 +1,8 @@
FROM docker-base FROM docker-base
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
COPY deps/quagga_*.deb /deps/ COPY deps/quagga_*.deb /deps/
RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; } && \ RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; } && \
dpkg_apt /deps/quagga_*.deb && \ dpkg_apt /deps/quagga_*.deb && \

View File

@ -1,5 +1,8 @@
FROM docker-base FROM docker-base
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update RUN apt-get update
# Dependencies for sonic-cfggen # Dependencies for sonic-cfggen

View File

@ -1,5 +1,8 @@
FROM docker-base FROM docker-base
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update RUN apt-get update
COPY \ COPY \

View File

@ -1,5 +1,8 @@
FROM docker-config-engine FROM docker-config-engine
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update RUN apt-get update
RUN apt-get install -y libdbus-1-3 libdaemon0 libjansson4 RUN apt-get install -y libdbus-1-3 libdaemon0 libjansson4

View File

@ -8,6 +8,9 @@ debs/
COPY python-wheels /python-wheels COPY python-wheels /python-wheels
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y python-pip supervisor libbsd0 libevent-2.0-5 libjansson4 libwrap0 libxml2 libpci3 libperl5.20 RUN apt-get update && apt-get install -y python-pip supervisor libbsd0 libevent-2.0-5 libjansson4 libwrap0 libxml2 libpci3 libperl5.20
## Pre-install the fundamental packages ## Pre-install the fundamental packages

View File

@ -2,6 +2,9 @@ FROM docker-base
COPY deps/sswsdk*.whl deps/lldpsyncd_*.deb deps/lldpd_*.deb /deps/ COPY deps/sswsdk*.whl deps/lldpsyncd_*.deb deps/lldpd_*.deb /deps/
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
## Pre-install the fundamental packages ## Pre-install the fundamental packages
## Install Python SSWSDK (lldpsyncd dependency) ## Install Python SSWSDK (lldpsyncd dependency)
## Install LLDP Sync Daemon ## Install LLDP Sync Daemon

View File

@ -1,5 +1,8 @@
FROM docker-base FROM docker-base
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update RUN apt-get update
## Pre-install the fundamental packages ## Pre-install the fundamental packages

View File

@ -1,5 +1,8 @@
FROM docker-config-engine FROM docker-config-engine
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update RUN apt-get update
RUN apt-get install -f -y ifupdown bridge-utils libdbus-1-3 libdaemon0 libjansson4 RUN apt-get install -f -y ifupdown bridge-utils libdbus-1-3 libdaemon0 libjansson4

View File

@ -1,5 +1,8 @@
FROM docker-config-engine FROM docker-config-engine
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update RUN apt-get update
RUN apt-get install -y smartmontools sensord RUN apt-get install -y smartmontools sensord

View File

@ -1,5 +1,8 @@
FROM docker-ptf FROM docker-ptf
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update RUN apt-get update
COPY ["deps/saithrift-0.9.tar.gz", "/deps/"] COPY ["deps/saithrift-0.9.tar.gz", "/deps/"]

View File

@ -1,5 +1,8 @@
FROM docker-base FROM docker-base
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update RUN apt-get update
COPY ["deps/libsaibcm_*.deb","deps/libopennsl_*.deb","deps/python-sdk-api_*.deb", "deps/iproute2_*.deb", "deps/libthrift-0.9.3_*.deb", "deps/libnl-3-200_*.deb", "deps/libnl-genl-3-200_*.deb", "deps/libnl-route-3-200_*.deb", "/deps/"] COPY ["deps/libsaibcm_*.deb","deps/libopennsl_*.deb","deps/python-sdk-api_*.deb", "deps/iproute2_*.deb", "deps/libthrift-0.9.3_*.deb", "deps/libnl-3-200_*.deb", "deps/libnl-genl-3-200_*.deb", "deps/libnl-route-3-200_*.deb", "/deps/"]

View File

@ -1,5 +1,8 @@
FROM docker-base FROM docker-base
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update RUN apt-get update
COPY ["deps/applibs_*.deb", "/deps/applibs-dev_*.deb", "/deps/sx-complib_*.deb", "/deps/sxd-libs_*.deb", "/deps/sx-scew_*.deb", "/deps/sx-examples_*.deb", "/deps/sx-gen-utils_*.deb", "/deps/python-sdk-api_*.deb", "/deps/iproute2_*.deb", "/deps/mlnx-sai_*.deb", "/deps/libthrift-0.9.3_*.deb", "/deps/libnl-3-200_*.deb", "/deps/libnl-genl-3-200_*.deb", "/deps/libnl-route-3-200_*.deb", "/deps/"] COPY ["deps/applibs_*.deb", "/deps/applibs-dev_*.deb", "/deps/sx-complib_*.deb", "/deps/sxd-libs_*.deb", "/deps/sx-scew_*.deb", "/deps/sx-examples_*.deb", "/deps/sx-gen-utils_*.deb", "/deps/python-sdk-api_*.deb", "/deps/iproute2_*.deb", "/deps/mlnx-sai_*.deb", "/deps/libthrift-0.9.3_*.deb", "/deps/libnl-3-200_*.deb", "/deps/libnl-genl-3-200_*.deb", "/deps/libnl-route-3-200_*.deb", "/deps/"]

View File

@ -12,6 +12,9 @@ COPY python-wheels/asyncsnmp-*-py3-*.whl /python-wheels/
# enable -O for all Python calls # enable -O for all Python calls
ENV PYTHONOPTIMIZE 1 ENV PYTHONOPTIMIZE 1
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
# install supervisor # install supervisor
# install libsnmp30 dependencies # install libsnmp30 dependencies
# install libpython3.6-dev dependencies # install libpython3.6-dev dependencies

View File

@ -6,6 +6,9 @@ COPY deps/python3/*.whl /python3/
# enable -O for all Python calls # enable -O for all Python calls
ENV PYTHONOPTIMIZE 1 ENV PYTHONOPTIMIZE 1
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
## Pre-install the fundamental packages ## Pre-install the fundamental packages
## Install Python SSWSDK (SNMP subagent dependency) ## Install Python SSWSDK (SNMP subagent dependency)
## Install SNMP subagent ## Install SNMP subagent

View File

@ -8,6 +8,9 @@ COPY
deps/sswsyncd_*.deb \ deps/sswsyncd_*.deb \
/deps/ /deps/
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
## Install packages ## Install packages
## Clean up ## Clean up
RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; } && \ RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; } && \

View File

@ -16,6 +16,9 @@ debs/{{ deb }}{{' '}}
COPY ["start.sh", "config.sh", "/usr/bin/"] COPY ["start.sh", "config.sh", "/usr/bin/"]
COPY ["teamd.j2", "/etc/swss/teamd/"] COPY ["teamd.j2", "/etc/swss/teamd/"]
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
RUN rm -rf /debs RUN rm -rf /debs

View File

@ -3,6 +3,9 @@ FROM docker-base
COPY deps/vasclnt_*.deb deps/vasgp_*.deb /deps/ COPY deps/vasclnt_*.deb deps/vasgp_*.deb /deps/
COPY user-override /etc/opt/quest/vas/user-override COPY user-override /etc/opt/quest/vas/user-override
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
## Pre-install the fundamental packages ## Pre-install the fundamental packages
## Clean up ## Clean up
RUN apt-get update && \ RUN apt-get update && \

View File

@ -1,5 +1,8 @@
FROM docker-base FROM docker-base
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update RUN apt-get update
COPY \ COPY \

View File

@ -1,5 +1,8 @@
FROM docker-base FROM docker-base
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update RUN apt-get update
COPY \ COPY \

View File

@ -1,5 +1,8 @@
FROM docker-base FROM docker-base
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update RUN apt-get update
COPY \ COPY \

View File

@ -1,5 +1,8 @@
FROM docker-base FROM docker-base
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update RUN apt-get update
RUN apt-get install -y net-tools ethtool tcpdump ifupdown bridge-utils python-ply libqt5core5a libqt5network5 libboost-program-options1.55.0 libboost-system1.55.0 libboost-thread1.55.0 libgmp10 libjudydebian1 libnanomsg0 libdaemon0 libjansson4 libjemalloc1 RUN apt-get install -y net-tools ethtool tcpdump ifupdown bridge-utils python-ply libqt5core5a libqt5network5 libboost-program-options1.55.0 libboost-system1.55.0 libboost-thread1.55.0 libgmp10 libjudydebian1 libnanomsg0 libdaemon0 libjansson4 libjemalloc1

View File

@ -7,6 +7,9 @@ RUN echo "deb-src http://debian-archive.trafficmanager.net/debian/ jessie main c
RUN echo "deb http://debian-archive.trafficmanager.net/debian-security/ jessie/updates main contrib non-free" >> /etc/apt/sources.list RUN echo "deb http://debian-archive.trafficmanager.net/debian-security/ jessie/updates main contrib non-free" >> /etc/apt/sources.list
RUN echo "deb-src http://debian-archive.trafficmanager.net/debian-security/ jessie/updates main contrib non-free" >> /etc/apt/sources.list RUN echo "deb-src http://debian-archive.trafficmanager.net/debian-security/ jessie/updates main contrib non-free" >> /etc/apt/sources.list
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get clean && apt-get update && apt-get install -y apt-utils default-jre-headless openssh-server curl wget unzip git build-essential libtool lintian RUN apt-get clean && apt-get update && apt-get install -y apt-utils default-jre-headless openssh-server curl wget unzip git build-essential libtool lintian
RUN apt-get update && apt-get install -y sudo dh-make dh-exec kmod libtinyxml2-2 libboost-program-options1.55-dev libtinyxml2-dev python python-pip libncurses5-dev texinfo dh-autoreconf python3-pip RUN apt-get update && apt-get install -y sudo dh-make dh-exec kmod libtinyxml2-2 libboost-program-options1.55-dev libtinyxml2-dev python python-pip libncurses5-dev texinfo dh-autoreconf python3-pip