1
0

Add yum to oraclelinux images

This commit is contained in:
dump_stack() 2023-05-11 08:20:35 +00:00
parent cc470d2105
commit 35d34fdbe0
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -21,7 +21,7 @@ RUN yum --installroot=$TMPDIR \
--releasever=_VERSION_ \ --releasever=_VERSION_ \
--disablerepo='*' \ --disablerepo='*' \
--enablerepo=ol_VERSION__baseos_latest \ --enablerepo=ol_VERSION__baseos_latest \
-y install openssh-server openssh-clients dhclient -y install openssh-server openssh-clients dhclient yum
RUN chroot $TMPDIR /bin/sh -c 'useradd -m user' RUN chroot $TMPDIR /bin/sh -c 'useradd -m user'
RUN sed -i 's/root:\*:/root::/' $TMPDIR/etc/shadow RUN sed -i 's/root:\*:/root::/' $TMPDIR/etc/shadow