Штinit commit

This commit is contained in:
Сергей Антропов
2025-03-05 15:53:41 +03:00
parent 43bd842720
commit 93333c3598
13 changed files with 214 additions and 0 deletions

24
Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
FROM python:3.9-slim
# Устанавливаем зависимости
RUN apt-get update && apt-get install -y \
git \
curl \
docker.io \
docker-compose \
&& rm -rf /var/lib/apt/lists/*
# Устанавливаем Ansible, Molecule и Ansible Vault
RUN pip install --no-cache-dir ansible ansible-vault molecule docker molecule-docker
# Устанавливаем Docker CLI
RUN curl -fsSL https://get.docker.com | sh
# Устанавливаем рабочую директорию
WORKDIR /workspace
# Устанавливаем роль из Ansible Galaxy (пример: geerlingguy.nginx)
#RUN ansible-galaxy role install geerlingguy.nginx
# Указываем команду по умолчанию
CMD ["molecule", "--version"]