From a2990959005f99fb67d9c9c624ff50ebdf3f3765 Mon Sep 17 00:00:00 2001 From: Juan Oxoby <49600381+joxoby@users.noreply.github.com> Date: Thu, 12 Nov 2020 15:06:23 -0800 Subject: [PATCH] No install apt recommends and clear cache (#423) Signed-off-by: Juan Oxoby Co-authored-by: Juan Oxoby Co-authored-by: Louise Poubel --- docker/scripts/install_common_deps.sh | 10 ++++++---- docker/scripts/install_ign_deps.sh | 20 ++++++++++---------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/docker/scripts/install_common_deps.sh b/docker/scripts/install_common_deps.sh index edadbee4d7..4557350cf2 100755 --- a/docker/scripts/install_common_deps.sh +++ b/docker/scripts/install_common_deps.sh @@ -5,13 +5,13 @@ set -o verbose sudo apt-get update -sudo apt-get install -y \ +sudo apt-get install --no-install-recommends -y \ gnupg \ lsb-release \ software-properties-common \ wget -sudo apt-get install -y \ +sudo apt-get install --no-install-recommends -y \ build-essential \ cmake \ cppcheck \ @@ -20,11 +20,13 @@ sudo apt-get install -y \ g++-8 \ pkg-config \ -sudo apt-get install -y \ +sudo apt-get install --no-install-recommends -y \ clang-tidy-6.0 \ python-yaml \ libclang-6.0-dev -sudo apt-get install -y \ +sudo apt-get install --no-install-recommends -y \ libbenchmark-dev \ libbenchmark1 + +sudo apt-get clean && sudo rm -rf /var/lib/apt/lists/* diff --git a/docker/scripts/install_ign_deps.sh b/docker/scripts/install_ign_deps.sh index 56a2fb6cd8..18d9ab52f7 100755 --- a/docker/scripts/install_ign_deps.sh +++ b/docker/scripts/install_ign_deps.sh @@ -6,7 +6,7 @@ set -o verbose sudo apt-get update # Things that are used all over the ign stack -sudo apt-get install -y \ +sudo apt-get install --no-install-recommends -y \ doxygen \ libbullet-dev \ libtinyxml2-dev \ @@ -18,7 +18,7 @@ sudo apt-get install -y \ uuid-dev # ign-common dependencies -sudo apt-get install -y \ +sudo apt-get install --no-install-recommends -y \ libavcodec-dev \ libavdevice-dev \ libavformat-dev \ @@ -28,7 +28,7 @@ sudo apt-get install -y \ libswscale-dev # ign-gui dependencies -sudo apt-get install -y \ +sudo apt-get install --no-install-recommends -y \ qtbase5-dev \ qtdeclarative5-dev \ qtquickcontrols2-5-dev \ @@ -42,7 +42,7 @@ sudo apt-get install -y \ qml-module-qtgraphicaleffects # ign-rendering dependencies -sudo apt-get install -y \ +sudo apt-get install --no-install-recommends -y \ libogre-1.9-dev \ libogre-2.1-dev \ libglew-dev \ @@ -52,20 +52,20 @@ sudo apt-get install -y \ libxi-dev # ign-transport dependencies -sudo apt-get install -y \ +sudo apt-get install --no-install-recommends -y \ libzmq3-dev \ libsqlite3-dev # SDFormat dependencies -sudo apt-get install -y \ +sudo apt-get install --no-install-recommends -y \ libtinyxml-dev libxml2-dev # ign-fuel_tools dependencies -sudo apt-get install -y \ +sudo apt-get install --no-install-recommends -y \ libcurl4-openssl-dev libjsoncpp-dev libzip-dev curl libyaml-dev # ign-physics dependencies -sudo apt-get install -y \ +sudo apt-get install --no-install-recommends -y \ libeigen3-dev \ dart6-data \ libdart6-collision-ode-dev \ @@ -74,8 +74,8 @@ sudo apt-get install -y \ libbenchmark-dev # ign-gazebo dependencies -sudo apt-get install -y \ +sudo apt-get install --no-install-recommends -y \ qml-module-qtqml-models2 -sudo apt-get clean +sudo apt-get clean && sudo rm -rf /var/lib/apt/lists/*