Enhancement debian package manager apt-get tweaks 09/111609/4
authorPratik Raj <rajpratik71@gmail.com>
Sun, 23 Aug 2020 18:22:52 +0000 (23:52 +0530)
committerJulien Bertozzi <julien.bertozzi@intl.att.com>
Mon, 7 Sep 2020 11:34:24 +0000 (11:34 +0000)
By default, Ubuntu or Debian based "apt" or "apt-get"
system installs recommended but not suggested packages .

By passing "--no-install-recommends" option, the user lets apt-get know
not to consider recommended packages as a dependency to install.

This results in smaller downloads and installation of packages
which result in faster download and setup

Refer to blog at
[Ubuntu Blog](https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends)

Issue-ID: SDC-3256

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
Change-Id: Ie9ebfa8e49fa6d562683fa147685c92d1180f467

sdc-os-chef/scripts/k8s/build_nsenter_exec.sh
sdc-os-chef/scripts/k8s/kubernetes_run.sh

index cf95ab8..ba9bd86 100644 (file)
@@ -7,7 +7,7 @@ docker run --name nsenter -it ubuntu:14.04 bash
 
 ## in the docker
 apt-get update
-apt-get install git build-essential libncurses5-dev libslang2-dev gettext zlib1g-dev libselinux1-dev debhelper lsb-release pkg-config po-debconf autoconf automake autopoint libtool bison
+apt-get install -y -qq --no-install-recommends git build-essential libncurses5-dev libslang2-dev gettext zlib1g-dev libselinux1-dev debhelper lsb-release pkg-config po-debconf autoconf automake autopoint libtool bison
 
 git clone --depth 1 git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git util-linux
 cd util-linux/
index afbec35..e167c69 100644 (file)
@@ -68,7 +68,7 @@ fi
 ## In order to build the nsenter use the below instructions:
 ##./build_nsenter_exec.sh
 echo "[INFO]   Install - socat"
-sudo apt-get install -y socat jq
+sudo apt-get install -y -qq --no-install-recommends socat jq
 
 ####################
 # helm             #