diff --git a/Dockerfile-CentOS b/Dockerfile-CentOS index 0e4a063..eba57d0 100644 --- a/Dockerfile-CentOS +++ b/Dockerfile-CentOS @@ -11,6 +11,18 @@ RUN dnf -y update && \ dnf clean all && \ rm -rf /var/cache/dnf /tmp/* /var/tmp/* +# Устанавливаем Python пакеты для Ansible +RUN pip install --upgrade pip && \ + pip install \ + ansible \ + ansible-vault \ + molecule \ + molecule-docker \ + ansible-lint \ + yamllint \ + docker \ + && rm -rf /root/.cache/pip + # Настраиваем окружение для systemd ENV container=docker STOPSIGNAL SIGRTMIN+3 diff --git a/Dockerfile-Ubuntu b/Dockerfile-Ubuntu index 71b220b..15fb902 100644 --- a/Dockerfile-Ubuntu +++ b/Dockerfile-Ubuntu @@ -7,6 +7,25 @@ FROM geerlingguy/docker-ubuntu2204-ansible:latest ENV DEBIAN_FRONTEND=noninteractive ENV container=docker +# Устанавливаем дополнительные пакеты для тестирования +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + systemd \ + systemd-sysv \ + rsync \ + && rm -rf /var/lib/apt/lists/* + +# Устанавливаем дополнительные Python пакеты для Ansible +RUN pip install --upgrade pip && \ + pip install \ + ansible-vault \ + molecule \ + molecule-docker \ + ansible-lint \ + yamllint \ + docker \ + && rm -rf /root/.cache/pip + # Указываем, что контейнер использует systemd в качестве init-системы ENV container=docker STOPSIGNAL SIGRTMIN+3