mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 05:45:26 +01:00 
			
		
		
		
	chore: Bring back ZYPPER_OPTIONS
				
					
				
			This commit is contained in:
		
							
								
								
									
										17
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								Dockerfile
									
									
									
									
									
								
							| @@ -6,21 +6,18 @@ ARG INSTALL_ROOT=/rootfs | |||||||
| FROM opensuse/leap:${LEAP_VERSION} as builder | FROM opensuse/leap:${LEAP_VERSION} as builder | ||||||
| ARG CACHE_ZYPPER=/tmp/cache/zypper | ARG CACHE_ZYPPER=/tmp/cache/zypper | ||||||
| ARG INSTALL_ROOT | ARG INSTALL_ROOT | ||||||
| # Usually you could source this from /etc/os-release | # /etc/os-release provides $VERSION_ID | ||||||
| # Might not always match the image tag: | RUN source /etc/os-release \ | ||||||
| ARG VERSION_ID=15.4 |   && export ZYPPER_OPTIONS=( --releasever "${VERSION_ID}" --installroot "${INSTALL_ROOT}" --cache-dir "${CACHE_ZYPPER}" ) \ | ||||||
| RUN  zypper --releasever "${VERSION_ID}" --installroot "${INSTALL_ROOT}" --cache-dir "${CACHE_ZYPPER}" \ |   && zypper "${ZYPPER_OPTIONS[@]}" --gpg-auto-import-keys refresh \ | ||||||
|        --gpg-auto-import-keys refresh \ |   && zypper "${ZYPPER_OPTIONS[@]}" --non-interactive install --download-in-advance --no-recommends \ | ||||||
|   && zypper --releasever "${VERSION_ID}" --installroot "${INSTALL_ROOT}" --cache-dir "${CACHE_ZYPPER}" \ |  | ||||||
|        --non-interactive install --download-in-advance --no-recommends \ |  | ||||||
|        bash procps grep gawk sed coreutils busybox-util-linux busybox-vi ldns libidn2-0 socat openssl curl \ |        bash procps grep gawk sed coreutils busybox-util-linux busybox-vi ldns libidn2-0 socat openssl curl \ | ||||||
|   && zypper --releasever "${VERSION_ID}" --installroot "${INSTALL_ROOT}" --cache-dir "${CACHE_ZYPPER}" \ |   && zypper "${ZYPPER_OPTIONS[@]}" clean --all | ||||||
|        clean --all |  | ||||||
| ## Cleanup (reclaim approx 13 MiB): | ## Cleanup (reclaim approx 13 MiB): | ||||||
| # None of this content should be relevant to the container: | # None of this content should be relevant to the container: | ||||||
| RUN  rm -r "${INSTALL_ROOT}/usr/share/"{licenses,man,locale,doc,help,info} | RUN  rm -r "${INSTALL_ROOT}/usr/share/"{licenses,man,locale,doc,help,info} | ||||||
| # Functionality that the container doesn't need: | # Functionality that the container doesn't need: | ||||||
| RUN  rm "${INSTALL_ROOT}/usr/share/misc/termcap" \ | RUN  rm    "${INSTALL_ROOT}/usr/share/misc/termcap" \ | ||||||
|   && rm -r "${INSTALL_ROOT}/usr/lib/sysimage/rpm" |   && rm -r "${INSTALL_ROOT}/usr/lib/sysimage/rpm" | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Brennan Kinney
					Brennan Kinney