1
0

Switch to podman

This commit is contained in:
dump_stack() 2023-05-12 08:11:57 +00:00
parent 7d88f09bb0
commit 8f06448240
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -2,17 +2,24 @@
set -eux set -eux
cd $(dirname $(realpath $0))
for version in 6 7 8 9; do for version in 6 7 8 9; do
mkdir $version mkdir $version
sed "s/_VERSION_/${version}/" Dockerfile.template >> $version/Dockerfile sed "s/_VERSION_/${version}/" Dockerfile.template >> $version/Dockerfile
if [[ $version -eq 6 ]]; then if [[ $version -eq 6 ]]; then
sed -i 's/baseos_latest/u10_base/' $version/Dockerfile sed -i 's/baseos_latest/u10_base/' $version/Dockerfile
fi fi
if [[ $version -eq 7 ]]; then if [[ $version -eq 7 ]]; then
sed -i 's/baseos_latest/u9_base/' $version/Dockerfile sed -i 's/baseos_latest/u9_base/' $version/Dockerfile
fi fi
docker build -t gen-oraclelinux${version}-image $version
podman build -t gen-oraclelinux${version}-image $version
rm -rf $version rm -rf $version
docker run --privileged -v $(pwd):/shared -t gen-oraclelinux${version}-image
podman run --privileged -v $(pwd):/shared -t gen-oraclelinux${version}-image
tar -Szcf out_of_tree_oraclelinux_${version}.img.tar.gz out_of_tree_oraclelinux_${version}.img tar -Szcf out_of_tree_oraclelinux_${version}.img.tar.gz out_of_tree_oraclelinux_${version}.img
done done