Skip to content

Commit

Permalink
Add python3-apt to ubuntu2404 dockerfile to enable ansible remediations
Browse files Browse the repository at this point in the history
  • Loading branch information
mpurg committed Dec 6, 2024
1 parent 68498f9 commit 2d47472
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfiles/test_suite-ubuntu2404
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ 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
# Don't clean all, as the test scenario may require package install.
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 \
Expand Down

0 comments on commit 2d47472

Please sign in to comment.