summaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/scripts/k8s
diff options
context:
space:
mode:
authorPratik Raj <rajpratik71@gmail.com>2020-08-23 23:52:52 +0530
committerJulien Bertozzi <julien.bertozzi@intl.att.com>2020-09-07 11:34:24 +0000
commit3490973c6c0d42cc0c020b4bd808964d3c365a99 (patch)
treebf620a3bf781593c0e4ec4c52a0939e0d2fb5c49 /sdc-os-chef/scripts/k8s
parenta9d7c2551f09bf50c79bc86c4438e84bc445b256 (diff)
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
Diffstat (limited to 'sdc-os-chef/scripts/k8s')
-rw-r--r--sdc-os-chef/scripts/k8s/build_nsenter_exec.sh2
-rw-r--r--sdc-os-chef/scripts/k8s/kubernetes_run.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/sdc-os-chef/scripts/k8s/build_nsenter_exec.sh b/sdc-os-chef/scripts/k8s/build_nsenter_exec.sh
index cf95ab8973..ba9bd8610c 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 @@ 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/
diff --git a/sdc-os-chef/scripts/k8s/kubernetes_run.sh b/sdc-os-chef/scripts/k8s/kubernetes_run.sh
index afbec358c9..e167c69041 100644
--- a/sdc-os-chef/scripts/k8s/kubernetes_run.sh
+++ b/sdc-os-chef/scripts/k8s/kubernetes_run.sh
@@ -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 #