fix(qemu images): add appstream repo for OracleLinux
This commit is contained in:
parent
081b534bd2
commit
bbc4f41498
@ -13,6 +13,7 @@ RUN yum --installroot=$TMPDIR \
|
||||
--releasever=_VERSION_ \
|
||||
--disablerepo='*' \
|
||||
--enablerepo=ol_VERSION__baseos_latest \
|
||||
--enablerepo=ol_VERSION__appstream \
|
||||
-y groupinstall Base
|
||||
|
||||
RUN cp /etc/yum.repos.d/* $TMPDIR/etc/yum.repos.d/
|
||||
@ -21,6 +22,7 @@ RUN yum --installroot=$TMPDIR \
|
||||
--releasever=_VERSION_ \
|
||||
--disablerepo='*' \
|
||||
--enablerepo=ol_VERSION__baseos_latest \
|
||||
--enablerepo=ol_VERSION__appstream \
|
||||
-y install openssh-server openssh-clients dhclient yum
|
||||
|
||||
RUN chroot $TMPDIR /bin/sh -c 'useradd -m user'
|
||||
|
@ -11,9 +11,14 @@ for version in 6 7 8 9; do
|
||||
|
||||
if [[ $version -eq 6 ]]; then
|
||||
sed -i 's/baseos_latest/u10_base/' $version/Dockerfile
|
||||
sed -i '/appstream/d' $version/Dockerfile
|
||||
fi
|
||||
if [[ $version -eq 7 ]]; then
|
||||
sed -i 's/baseos_latest/u9_base/' $version/Dockerfile
|
||||
sed -i '/appstream/d' $version/Dockerfile
|
||||
fi
|
||||
if [[ $version -eq 8 ]]; then
|
||||
sed -i '/appstream/d' $version/Dockerfile
|
||||
fi
|
||||
|
||||
podman build -t gen-oraclelinux${version}-image $version
|
||||
|
Loading…
Reference in New Issue
Block a user