This commit is contained in:
Сергей Антропов
2025-03-05 18:59:10 +03:00
parent 78359193fe
commit 382395b909
29 changed files with 49 additions and 147 deletions

View File

@@ -6,19 +6,13 @@ RUN apt-get update && apt-get install -y \
curl \
docker.io \
docker-compose \
sshpass \
&& rm -rf /var/lib/apt/lists/*
# Устанавливаем Ansible, Molecule и Ansible Vault
RUN pip install --no-cache-dir ansible ansible-vault molecule docker molecule-docker
RUN pip3 install --no-cache-dir ansible ansible-lint 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"]
WORKDIR /ansible
ENTRYPOINT ["/bin/bash"]