|
@@ -1,4 +1,4 @@
|
|
|
-FROM centos:8.3.2011
|
|
|
+FROM rockylinux/rockylinux:8.5
|
|
|
|
|
|
# RPM REPOs
|
|
|
RUN dnf install -y \
|
|
@@ -10,10 +10,6 @@ RUN dnf update -y \
|
|
|
&& dnf clean all \
|
|
|
&& rm -rf /var/cache/dnf
|
|
|
|
|
|
-RUN dnf install -y git
|
|
|
-RUN git clone -b v3.2.2 https://github.com/cobbler/cobbler.git
|
|
|
-RUN cd cobbler/
|
|
|
-
|
|
|
RUN mkdir /root/omnia
|
|
|
|
|
|
RUN dnf install -y mod_ssl \
|
|
@@ -44,11 +40,14 @@ RUN dnf install -y mod_ssl \
|
|
|
&& dnf clean all \
|
|
|
&& rm -rf /var/cache/dnf
|
|
|
|
|
|
-RUN yum install -y grub2-efi-x64 shim-x64
|
|
|
+RUN yum install -y grub2-efi-x64 shim-x64
|
|
|
RUN yum install -y yum-utils
|
|
|
RUN dnf config-manager --set-enabled powertools
|
|
|
RUN dnf install -y python3-sphinx
|
|
|
RUN pip3 install wheel
|
|
|
+RUN dnf module enable -y cobbler
|
|
|
+RUN dnf install -y cobbler
|
|
|
+RUN dnf install -y cobbler-web
|
|
|
|
|
|
#Copy Configuration files
|
|
|
COPY settings.yaml /etc/cobbler/settings.yaml
|
|
@@ -56,7 +55,7 @@ COPY dhcp.template /etc/cobbler/dhcp.template
|
|
|
COPY modules.conf /etc/cobbler/modules.conf
|
|
|
COPY tftp /etc/xinetd.d/tftp
|
|
|
COPY .users.digest /etc/cobbler/users.digest
|
|
|
-COPY cobbler_configurations.yml /root
|
|
|
+COPY cobbler_configurations_rocky.yml /root
|
|
|
COPY tftp.yml /root
|
|
|
COPY inventory_creation.yml /root
|
|
|
|