This commit is contained in:
		
							parent
							
								
									557281912c
								
							
						
					
					
						commit
						4175637376
					
				
					 2 changed files with 3 additions and 10 deletions
				
			
		| 
						 | 
					@ -21,6 +21,7 @@ RUN dnf update -y --setopt install_weak_deps=False && \
 | 
				
			||||||
    dnf clean all -y
 | 
					    dnf clean all -y
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ADD containers.conf /etc/containers/
 | 
					ADD containers.conf /etc/containers/
 | 
				
			||||||
 | 
					ADD containers/storage.conf /etc/containers/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Adjust storage.conf to enable Fuse storage.
 | 
					# Adjust storage.conf to enable Fuse storage.
 | 
				
			||||||
RUN sed -i -e 's|^#mount_program|mount_program|g' -e '/additionalimage.*/a "/var/lib/shared",' /etc/containers/storage.conf
 | 
					RUN sed -i -e 's|^#mount_program|mount_program|g' -e '/additionalimage.*/a "/var/lib/shared",' /etc/containers/storage.conf
 | 
				
			||||||
| 
						 | 
					@ -33,16 +34,6 @@ RUN useradd action && \
 | 
				
			||||||
    mkdir -p /home/action/.local/share/containers && \
 | 
					    mkdir -p /home/action/.local/share/containers && \
 | 
				
			||||||
    mkdir -p /home/action/.config/containers && \
 | 
					    mkdir -p /home/action/.config/containers && \
 | 
				
			||||||
    chown -R action:action /home/action
 | 
					    chown -R action:action /home/action
 | 
				
			||||||
# See:  https://github.com/containers/buildah/issues/4669
 | 
					 | 
				
			||||||
# Copy & modify the config for the `build` user and remove the global
 | 
					 | 
				
			||||||
# `runroot` and `graphroot` which current `build` user cannot access,
 | 
					 | 
				
			||||||
# in such case storage will choose a runroot in `/var/tmp`.
 | 
					 | 
				
			||||||
RUN sed -e 's|^#mount_program|mount_program|g' \
 | 
					 | 
				
			||||||
        -e 's|^graphroot|#graphroot|g' \
 | 
					 | 
				
			||||||
        -e 's|^runroot|#runroot|g' \
 | 
					 | 
				
			||||||
        /etc/containers/storage.conf \
 | 
					 | 
				
			||||||
        > /home/build/.config/containers/storage.conf && \
 | 
					 | 
				
			||||||
        chown build:build /home/build/.config/containers/storage.conf
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
VOLUME /var/lib/containers
 | 
					VOLUME /var/lib/containers
 | 
				
			||||||
VOLUME /home/action/.local/share/containers
 | 
					VOLUME /home/action/.local/share/containers
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								fedora-40/containers/storage.conf
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								fedora-40/containers/storage.conf
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,2 @@
 | 
				
			||||||
 | 
					[storage.option.overlay]
 | 
				
			||||||
 | 
					mount_program="/usr/bin/fuse-overlayfs"
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue