Оптимизация Dockerfile: убраны лишние пакеты и закомментированы Docker/yq
Some checks failed
Ansible Testing / lint (push) Has been cancelled
Ansible Testing / test (default) (push) Has been cancelled
Ansible Testing / test (minimal) (push) Has been cancelled
Ansible Testing / test (performance) (push) Has been cancelled
Ansible Testing / deploy-check (push) Has been cancelled
Some checks failed
Ansible Testing / lint (push) Has been cancelled
Ansible Testing / test (default) (push) Has been cancelled
Ansible Testing / test (minimal) (push) Has been cancelled
Ansible Testing / test (performance) (push) Has been cancelled
Ansible Testing / deploy-check (push) Has been cancelled
- Убраны пакеты: vim, jq, git, htop, tree из всех Dockerfile - Закомментированы установки Docker, Docker Compose, yq - Обновлен Rocky Linux до версии 9 с Python 3 - Исправлена проблема с passlib в ansible-controller - Оставлены только необходимые пакеты: systemd, curl, wget, nano, python3, sudo
This commit is contained in:
@@ -16,8 +16,8 @@ RUN apt-get install -y \
|
||||
build-essential \
|
||||
&& apt-get clean
|
||||
|
||||
# Устанавливаем Ansible и ansible-lint
|
||||
RUN pip3 install ansible ansible-core ansible-lint
|
||||
# Устанавливаем Ansible, ansible-lint и passlib для хеширования паролей
|
||||
RUN pip3 install ansible ansible-core ansible-lint passlib
|
||||
|
||||
# Устанавливаем дополнительные пакеты
|
||||
RUN apt-get install -y \
|
||||
@@ -56,8 +56,12 @@ RUN curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.23.0/kind-linux-amd64 \
|
||||
# && mv istio-1.22.1/bin/istioctl /usr/local/bin/ \
|
||||
# && rm -rf istio-1.22.1
|
||||
|
||||
# Копируем requirements.yml
|
||||
# Копируем файлы зависимостей
|
||||
COPY requirements.yml /tmp/requirements.yml
|
||||
COPY requirements.txt /tmp/requirements.txt
|
||||
|
||||
# Устанавливаем Python зависимости
|
||||
RUN pip3 install -r /tmp/requirements.txt
|
||||
|
||||
# Устанавливаем Ansible коллекции
|
||||
RUN ansible-galaxy collection install -r /tmp/requirements.yml
|
||||
|
||||
9
dockerfiles/ansible-controller/requirements.txt
Normal file
9
dockerfiles/ansible-controller/requirements.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
# Python зависимости для Ansible Controller
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
# Основные зависимости для работы с паролями
|
||||
passlib>=1.7.4
|
||||
|
||||
# Дополнительные зависимости для безопасности
|
||||
bcrypt>=4.0.1
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
# Ansible Collections для Molecule Universal
|
||||
# Ansible Collections for Molecule Universal
|
||||
collections:
|
||||
- name: community.docker
|
||||
version: ">=3.0.0"
|
||||
- name: community.general
|
||||
version: ">=7.0.0"
|
||||
- name: ansible.posix
|
||||
version: ">=1.5.4"
|
||||
version: ">=1.5.4"
|
||||
Reference in New Issue
Block a user