Skip to content

Commit 812771c

Browse files
committed
toolset: Reduce the packages installed by APT
Make sure that APT does not install anything unnecessary. Signed-off-by: Anton Kirilov <[email protected]>
1 parent b965c8b commit 812771c

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ ARG DEBIAN_FRONTEND=noninteractive
44
# WARNING: DON'T PUT A SPACE AFTER ANY BACKSLASH OR APT WILL BREAK
55
# One -q produces output suitable for logging (mostly hides
66
# progress indicators)
7-
RUN apt-get -yqq update && \
8-
apt-get -yqq install \
7+
RUN apt-get install \
8+
--no-install-recommends \
99
-o Dpkg::Options::="--force-confdef" \
1010
-o Dpkg::Options::="--force-confold" \
11+
-qqUy \
1112
cloc \
1213
curl \
1314
gcc \

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -eo pipefail -u
44

55
chown -LR "$USER_ID" /var/run
66
# Drop permissions of user to match those of the host system
7-
gosu "$USER_ID" python3 "${FWROOT}/toolset/run-tests.py" "$@"
7+
exec gosu "$USER_ID" python3 "${FWROOT}/toolset/run-tests.py" "$@"

toolset/wrk/wrk.dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ FROM ubuntu:24.04
44
COPY concurrency.sh pipeline.lua pipeline.sh query.sh ./
55

66
ARG DEBIAN_FRONTEND=noninteractive
7-
RUN apt-get -yqq update >/dev/null && \
8-
apt-get -yqq install >/dev/null \
9-
curl \
10-
wrk && \
7+
RUN apt-get install --no-install-recommends -qqUy curl wrk > /dev/null && \
118
chmod 777 concurrency.sh pipeline.sh query.sh
129

1310
# Environment vars required by the wrk scripts with nonsense defaults

0 commit comments

Comments
 (0)