From c4c09ce8912eaa38aaea3d610059c051d13beb9f Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 23 Aug 2023 15:29:00 +0300 Subject: Script provided for testing containers under various Linux distros --- test_with_podman.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 test_with_podman.sh (limited to 'test_with_podman.sh') diff --git a/test_with_podman.sh b/test_with_podman.sh new file mode 100755 index 0000000..c32612c --- /dev/null +++ b/test_with_podman.sh @@ -0,0 +1,16 @@ +#!/bin/bash +podman_dir="podman" +now="$(date -u +%s)" +build_log="$now-build_log" +for file in $podman_dir/* +do + distro="$(printf "%s" "$file"|cut -d '.' -f 2)" + printf "Building %s container..." "$distro" + podman build -f $file -t arching-kaos-tools-$distro . >> $build_log 2>&1 + if [ $? -ne 0 ] + then + printf "\tFailed!\n" + else + printf "\tSuccess!\n" + fi +done -- cgit v1.2.3