mirror of
https://github.com/linka-cloud/d2vm.git
synced 2025-06-23 22:02:25 +00:00
cli: improve flags and commands
docs: add README.md and examples centos/rhel: fix dracut initramfs Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
13
examples/centos.Dockerfile
Normal file
13
examples/centos.Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM centos
|
||||
|
||||
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
|
||||
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
|
||||
|
||||
RUN yum update -y
|
||||
RUN yum install -y qemu-guest-agent openssh-server && \
|
||||
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config && \
|
||||
systemctl enable dbus.service && \
|
||||
systemctl set-default graphical.target
|
||||
|
||||
RUN echo "NETWORKING=yes" >> /etc/sysconfig/network && \
|
||||
echo -e 'DEVICE="eth0"\nONBOOT="yes"\nBOOTPROTO="dhcp"\n' > /etc/sysconfig/network-scripts/ifcfg-eth0
|
Reference in New Issue
Block a user