mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 14:30:30 +03:00 
			
		
		
		
	buildserver: strip extraneous packages installed in Vagrant base box
The official Debian Vagrant box seems to be a "batteries included" kind of thing. The buildserver should be as small as possible, so this removes all the extraneous packages I could find in the Vagrant basebox.
This commit is contained in:
		
							parent
							
								
									fdeab70c03
								
							
						
					
					
						commit
						817a156ea5
					
				
					 1 changed files with 55 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -44,6 +44,54 @@ EOF
 | 
			
		|||
echo "deb ${debian_mirror} bullseye-backports main" > /etc/apt/sources.list.d/backports.list
 | 
			
		||||
 | 
			
		||||
apt-get update || apt-get update
 | 
			
		||||
 | 
			
		||||
# purge things that might come from the base box, but we don't want
 | 
			
		||||
# https://salsa.debian.org/cloud-team/debian-vagrant-images/-/tree/master/config_space/package_config
 | 
			
		||||
# cat config_space/package_config/* | sort -u | grep -v '[A-Z#]'
 | 
			
		||||
purge="
 | 
			
		||||
 apt-listchanges
 | 
			
		||||
 apt-utils
 | 
			
		||||
 bash-completion
 | 
			
		||||
 bind9-*
 | 
			
		||||
 bsdextrautils
 | 
			
		||||
 build-essential
 | 
			
		||||
 bzip2
 | 
			
		||||
 chrony
 | 
			
		||||
 cloud-utils
 | 
			
		||||
 cron
 | 
			
		||||
 dbus
 | 
			
		||||
 debconf-i18n
 | 
			
		||||
 debian-faq
 | 
			
		||||
 dmidecode
 | 
			
		||||
 doc-debian
 | 
			
		||||
 fdisk
 | 
			
		||||
 file
 | 
			
		||||
 groff-base
 | 
			
		||||
 krb5-locales
 | 
			
		||||
 less
 | 
			
		||||
 locales
 | 
			
		||||
 logrotate
 | 
			
		||||
 lsof
 | 
			
		||||
 manpages
 | 
			
		||||
 nano
 | 
			
		||||
 ncurses-term
 | 
			
		||||
 netcat-traditional
 | 
			
		||||
 pciutils
 | 
			
		||||
 reportbug
 | 
			
		||||
 rsyslog
 | 
			
		||||
 tasksel
 | 
			
		||||
 telnet
 | 
			
		||||
 traceroute
 | 
			
		||||
 unattended-upgrades
 | 
			
		||||
 vim-*
 | 
			
		||||
 wamerican
 | 
			
		||||
 wget
 | 
			
		||||
 whiptail
 | 
			
		||||
 xxd
 | 
			
		||||
 xz-utils
 | 
			
		||||
"
 | 
			
		||||
apt-get purge $purge
 | 
			
		||||
 | 
			
		||||
apt-get upgrade --download-only
 | 
			
		||||
apt-get upgrade
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -67,7 +115,14 @@ packages="
 | 
			
		|||
 | 
			
		||||
apt-get install $packages --download-only
 | 
			
		||||
apt-get install $packages
 | 
			
		||||
apt-get autoremove --purge
 | 
			
		||||
 | 
			
		||||
# fdroidserver comes from git, it was installed just for dependencies
 | 
			
		||||
apt-get purge fdroidserver
 | 
			
		||||
 | 
			
		||||
# clean up things that will become outdated anyway
 | 
			
		||||
apt-get clean
 | 
			
		||||
rm -rf /var/lib/apt/lists/*
 | 
			
		||||
 | 
			
		||||
highestjava=`update-java-alternatives --list | sort -n | tail -1 | cut -d ' ' -f 1`
 | 
			
		||||
update-java-alternatives --set $highestjava
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue