Sayan Chowdhury 19a5fb8293
Add the initial logic for CAPI SIG image publishing
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
2023-11-08 15:30:56 +05:30

8 lines
499 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
PACKAGES="packaging pyyaml urllib3"
exec docker run --rm -i -v "${FOLDER}:${FOLDER}" -v "${PWD}:${PWD}" -w "${PWD}" docker.io/python:alpine sh -c "pip install ${PACKAGES} 2>/dev/null >/dev/null; python3 $*"