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 --- podman/ContainerFile.fedora | 1 + test_with_podman.sh | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 120000 podman/ContainerFile.fedora create mode 100755 test_with_podman.sh diff --git a/podman/ContainerFile.fedora b/podman/ContainerFile.fedora new file mode 120000 index 0000000..961cd75 --- /dev/null +++ b/podman/ContainerFile.fedora @@ -0,0 +1 @@ +../ContainerFile \ No newline at end of file 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