Switch to podman
This commit is contained in:
parent
7d88f09bb0
commit
8f06448240
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user