From 2d474728856fd351f38070a1c62cb1c7c2763d36 Mon Sep 17 00:00:00 2001 From: Miha Purg Date: Thu, 5 Dec 2024 19:29:44 +0100 Subject: [PATCH] Add python3-apt to ubuntu2404 dockerfile to enable ansible remediations --- Dockerfiles/test_suite-ubuntu2404 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfiles/test_suite-ubuntu2404 b/Dockerfiles/test_suite-ubuntu2404 index 32292da68b7..8b922eaa182 100644 --- a/Dockerfiles/test_suite-ubuntu2404 +++ b/Dockerfiles/test_suite-ubuntu2404 @@ -4,6 +4,7 @@ FROM ubuntu:24.04 ENV AUTH_KEYS=/root/.ssh/authorized_keys ARG CLIENT_PUBLIC_KEY +ARG ADDITIONAL_PACKAGES ARG DEBIAN_FRONTEND=noninteractive # Install Python so Ansible remediations can work @@ -11,7 +12,9 @@ ARG DEBIAN_FRONTEND=noninteractive RUN true \ && apt update \ && apt install -y openscap-utils openscap-scanner \ - && apt install -y openssh-server + openssh-server python3 python3-apt \ + $ADDITIONAL_PACKAGES \ + && true RUN true \ && ssh-keygen -A \