diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-08-23 15:29:00 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-08-23 15:29:00 +0300 |
commit | c4c09ce8912eaa38aaea3d610059c051d13beb9f (patch) | |
tree | 9eff53bf86cdb93c4f7cab0f0b9ac19f91ef53df | |
parent | 5c6b610e905702074c80ce00b649b07df682fee6 (diff) | |
download | arching-kaos-tools-c4c09ce8912eaa38aaea3d610059c051d13beb9f.tar.gz arching-kaos-tools-c4c09ce8912eaa38aaea3d610059c051d13beb9f.tar.bz2 arching-kaos-tools-c4c09ce8912eaa38aaea3d610059c051d13beb9f.zip |
Script provided for testing containers under various Linux distros
l--------- | podman/ContainerFile.fedora | 1 | ||||
-rwxr-xr-x | test_with_podman.sh | 16 |
2 files changed, 17 insertions, 0 deletions
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 |