You've already forked ansible-docker
							
							fix(rockylinux-8): init
This commit is contained in:
		
							
								
								
									
										20
									
								
								Dockerfile.rockylinux8
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								Dockerfile.rockylinux8
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
FROM docker.io/library/rockylinux:8
 | 
			
		||||
 | 
			
		||||
RUN dnf update --assumeyes && \
 | 
			
		||||
    dnf install --assumeyes epel-release && \
 | 
			
		||||
    dnf install --assumeyes ansible && \
 | 
			
		||||
    dnf remove --assumeyes epel-release && \
 | 
			
		||||
    dnf install --assumeyes bash-completion sudo && \
 | 
			
		||||
    dnf clean all
 | 
			
		||||
 | 
			
		||||
# Install Ansible inventory file
 | 
			
		||||
RUN mkdir --parents /etc/ansible
 | 
			
		||||
RUN echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
 | 
			
		||||
 | 
			
		||||
# Remove unnecessary getty and udev targets that result in high CPU usage when
 | 
			
		||||
# using multiple containers with molecule
 | 
			
		||||
# (https://github.com/ansible/molecule/issues/1104)
 | 
			
		||||
RUN rm --recursive --force /lib/systemd/system/systemd*udev* && \
 | 
			
		||||
    rm --recursive --force /lib/systemd/system/getty.target
 | 
			
		||||
 | 
			
		||||
VOLUME [ "/sys/fs/cgroup", "/tmp", "/run"]
 | 
			
		||||
		Reference in New Issue
	
	Block a user