From 3490973c6c0d42cc0c020b4bd808964d3c365a99 Mon Sep 17 00:00:00 2001 From: Pratik Raj Date: Sun, 23 Aug 2020 23:52:52 +0530 Subject: 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 Change-Id: Ie9ebfa8e49fa6d562683fa147685c92d1180f467 --- sdc-os-chef/scripts/k8s/build_nsenter_exec.sh | 2 +- sdc-os-chef/scripts/k8s/kubernetes_run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sdc-os-chef/scripts/k8s') 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 # -- cgit 1.2.3-korg