ci: minimize installed libboost packages
Change-Id: I69f5f2198cdc74db0f41619b678eff2c24a76983
diff --git a/.jenkins.d/00-deps.sh b/.jenkins.d/00-deps.sh
index c114f8d..7e03e98 100755
--- a/.jenkins.d/00-deps.sh
+++ b/.jenkins.d/00-deps.sh
@@ -1,8 +1,22 @@
#!/usr/bin/env bash
set -eo pipefail
-APT_PKGS=(build-essential pkg-config python3-minimal
- libboost-all-dev libssl-dev libsqlite3-dev)
+APT_PKGS=(
+ build-essential
+ libboost-chrono-dev
+ libboost-date-time-dev
+ libboost-dev
+ libboost-filesystem-dev
+ libboost-log-dev
+ libboost-program-options-dev
+ libboost-stacktrace-dev
+ libboost-test-dev
+ libboost-thread-dev
+ libsqlite3-dev
+ libssl-dev
+ pkg-config
+ python3-minimal
+)
FORMULAE=(boost openssl pkg-config)
PIP_PKGS=()
case $JOB_NAME in
@@ -26,10 +40,10 @@
brew update
brew install --formula "${FORMULAE[@]}"
elif [[ $ID_LIKE == *debian* ]]; then
- sudo apt-get -qq update
- sudo apt-get -qy install "${APT_PKGS[@]}"
+ sudo apt-get update -qq
+ sudo apt-get install -qy --no-install-recommends "${APT_PKGS[@]}"
elif [[ $ID_LIKE == *fedora* ]]; then
- sudo dnf -y install gcc-c++ libasan lld pkgconf-pkg-config python3 \
+ sudo dnf install -y gcc-c++ libasan lld pkgconf-pkg-config python3 \
boost-devel openssl-devel sqlite-devel
fi
diff --git a/Dockerfile b/Dockerfile
index 8db7b31..4a9b699 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,16 +3,15 @@
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
dpkg-dev \
- libboost-atomic-dev \
libboost-chrono-dev \
libboost-date-time-dev \
+ libboost-dev \
libboost-filesystem-dev \
libboost-iostreams-dev \
libboost-log-dev \
libboost-program-options-dev \
- libboost-regex-dev \
libboost-stacktrace-dev \
- libboost-system-dev \
+ libboost-thread-dev \
pkg-config \
&& rm -rf /var/lib/apt/lists/*