mirror of
				https://github.com/flatcar/scripts.git
				synced 2025-11-04 02:01:22 +01:00 
			
		
		
		
	packaging is not used with the new version of the show-fixed-kernel-cves script. Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
		
			
				
	
	
		
			7 lines
		
	
	
		
			490 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			490 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
# Expects to be invoked as interpreter through a shebang
 | 
						|
FOLDER="$(dirname "$(readlink -f "$1")")"
 | 
						|
docker pull docker.io/python:alpine 2>/dev/null >/dev/null
 | 
						|
# Map the current and the script folder, install the pip package needed for flatcar-build-scripts/show-fixed-kernel-cves.py
 | 
						|
exec docker run --rm -i -v "${FOLDER}:${FOLDER}" -v "${PWD}:${PWD}" -w "${PWD}" docker.io/python:alpine sh -c "( apk add --update git && pip install feedparser ) 2>/dev/null >/dev/null; python3 $*"
 |