Enhancement debian package manager apt-get tweaks
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
diff --git a/sdc-os-chef/scripts/k8s/build_nsenter_exec.sh b/sdc-os-chef/scripts/k8s/build_nsenter_exec.sh
index cf95ab8..ba9bd86 100644
--- a/sdc-os-chef/scripts/k8s/build_nsenter_exec.sh
+++ b/sdc-os-chef/scripts/k8s/build_nsenter_exec.sh
@@ -7,7 +7,7 @@
## 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/
diff --git a/sdc-os-chef/scripts/k8s/kubernetes_run.sh b/sdc-os-chef/scripts/k8s/kubernetes_run.sh
index afbec35..e167c69 100644
--- a/sdc-os-chef/scripts/k8s/kubernetes_run.sh
+++ b/sdc-os-chef/scripts/k8s/kubernetes_run.sh
@@ -68,7 +68,7 @@
## 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 #