From b8ce1816e907b44258d60bb0c8ec937bf6486961 Mon Sep 17 00:00:00 2001 From: Ruslan Mstoi Date: Fri, 19 May 2023 16:07:56 +0300 Subject: [PATCH] Dockerfile: convert DEBIAN_FRONTEND to environment variable Setting environment variable DEBIAN_FRONTEND=noninteractive Makes unnecessary setting it in all apt-get install commands Signed-off-by: Ruslan Mstoi --- resources/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/Dockerfile b/resources/Dockerfile index 7520d7106..ecdf41957 100644 --- a/resources/Dockerfile +++ b/resources/Dockerfile @@ -15,11 +15,12 @@ ARG CARGO_GIT_REGISTRY_DIR="$CLH_BUILD_DIR/cargo_git_registry" ENV CARGO_HOME=/usr/local/rust ENV RUSTUP_HOME=$CARGO_HOME ENV PATH="$PATH:$CARGO_HOME/bin" +ENV DEBIAN_FRONTEND=noninteractive # Install all CI dependencies RUN apt-get update \ && apt-get -yq upgrade \ - && DEBIAN_FRONTEND=noninteractive apt-get install -yq \ + && apt-get install -yq \ build-essential \ bc \ curl \ @@ -60,7 +61,7 @@ RUN update-alternatives --set ovs-vswitchd /usr/lib/openvswitch-switch-dpdk/ovs- RUN if [ "$TARGETARCH" = "amd64" ]; then \ apt-get update \ && apt-get -yq upgrade \ - && DEBIAN_FRONTEND=noninteractive apt-get install -yq gcc-multilib gawk \ + && apt-get install -yq gcc-multilib gawk \ libtool expect gnutls-dev gnutls-bin libfuse-dev \ libjson-glib-dev libgmp-dev libtasn1-dev python3-twisted \ net-tools softhsm2 \ @@ -74,7 +75,7 @@ RUN if [ "$TARGETARCH" = "arm64" ]; then \ # kernel (any version) image in `/boot` and modules in `/lib/modules`. apt-get update \ && apt-get -yq upgrade \ - && DEBIAN_FRONTEND=noninteractive apt-get install -yq \ + && apt-get install -yq \ libcap2-bin \ libguestfs-tools \ linux-image-generic \