mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	These new scripts are streamlined such that, for example, "contrib/mkimage/debootstrap" is _only_ responsible for filling a directory with the results of running debootstrap, and it can accept any arbitrary arguments. Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			546 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			546 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
set -e
 | 
						|
 | 
						|
rootfsDir="$1"
 | 
						|
shift
 | 
						|
 | 
						|
# specifying --arch below is safe because "$@" can override it and the "latest" one wins :)
 | 
						|
 | 
						|
(
 | 
						|
	set -x
 | 
						|
	rinse --directory "$rootfsDir" --arch amd64 "$@"
 | 
						|
)
 | 
						|
 | 
						|
"$(dirname "$BASH_SOURCE")/.febootstrap-minimize" "$rootfsDir"
 | 
						|
 | 
						|
if [ -d "$rootfsDir/etc/sysconfig" ]; then
 | 
						|
	# allow networking init scripts inside the container to work without extra steps
 | 
						|
	echo 'NETWORKING=yes' > "$rootfsDir/etc/sysconfig/network"
 | 
						|
fi
 | 
						|
 | 
						|
# make sure we're fully up-to-date, too
 | 
						|
(
 | 
						|
	set -x
 | 
						|
	chroot "$rootfsDir" yum update -y
 | 
						|
)
 |