Оптимизация 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:
		| @@ -14,25 +14,22 @@ RUN dnf install -y --allowerasing \ | ||||
|     dbus \ | ||||
|     curl \ | ||||
|     wget \ | ||||
|     git \ | ||||
|     vim \ | ||||
|     nano \ | ||||
|     jq \ | ||||
|     python3 \ | ||||
|     python3-pip \ | ||||
|     sudo \ | ||||
|     && dnf clean all | ||||
|  | ||||
| # Устанавливаем yq | ||||
| RUN wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_arm64 \ | ||||
|     && chmod +x /usr/local/bin/yq | ||||
| # RUN wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_arm64 \ | ||||
| #     && chmod +x /usr/local/bin/yq | ||||
|  | ||||
| # Устанавливаем Docker | ||||
| RUN curl -fsSL https://get.docker.com | sh | ||||
| # RUN curl -fsSL https://get.docker.com | sh | ||||
|  | ||||
| # Устанавливаем Docker Compose | ||||
| RUN curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose \ | ||||
|     && chmod +x /usr/local/bin/docker-compose | ||||
| # RUN curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose \ | ||||
| #     && chmod +x /usr/local/bin/docker-compose | ||||
|  | ||||
| # Настраиваем systemd | ||||
| RUN systemctl set-default multi-user.target | ||||
|   | ||||
		Reference in New Issue
	
	Block a user