22 lines
		
	
	
		
			460 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			460 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Create a VM for testing Ansible provisioning.
 | |
| 
 | |
| FROM archlinux:base
 | |
| 
 | |
| ARG PACKAGES
 | |
| ENV PACKAGES="$PACKAGES"
 | |
| ARG EXTRA_ARCH
 | |
| ENV EXTRA_ARCH="$EXTRA_ARCH"
 | |
| 
 | |
| # Arch is rolling, and therefore recommends updating the container immediately.
 | |
| #  https://hub.docker.com/_/archlinux#updating
 | |
| RUN pacman -Syyu --noconfirm
 | |
| 
 | |
| RUN pacman -Syy  --noconfirm $PACKAGES $EXTRA_ARCH
 | |
| 
 | |
| COPY bin/main.sh /root/main.sh
 | |
| RUN chmod +x /root/main.sh
 | |
| 
 | |
| WORKDIR /root/
 | |
| USER root
 | |
| CMD ./main.sh
 |