Dockerfile_rocky 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. FROM rockylinux/rockylinux:docker_os
  2. # RPM REPOs
  3. RUN dnf install -y \
  4. epel-release \
  5. && dnf clean all \
  6. && rm -rf /var/cache/dnf
  7. RUN dnf update -y \
  8. && dnf clean all \
  9. && rm -rf /var/cache/dnf
  10. RUN mkdir /root/omnia
  11. RUN dnf install -y mod_ssl \
  12. python3-librepo \
  13. python3-schema \
  14. syslinux \
  15. wget \
  16. dhcp-server \
  17. pykickstart \
  18. dnf-plugins-core \
  19. cronie \
  20. xinetd \
  21. python3-coverage \
  22. python3-cheetah \
  23. python3-netaddr \
  24. python3-distro \
  25. python3-devel \
  26. python3-future \
  27. python3-mod_wsgi \
  28. gcc \
  29. xinetd \
  30. epel-rpm-macros \
  31. rpm-build \
  32. ansible \
  33. make \
  34. grub2-efi-x64-modules \
  35. efibootmgr \
  36. && dnf clean all \
  37. && rm -rf /var/cache/dnf
  38. RUN yum install -y grub2-efi-x64 shim-x64
  39. RUN yum install -y yum-utils
  40. RUN dnf config-manager --set-enabled powertools
  41. RUN dnf install -y python3-sphinx
  42. RUN pip3 install wheel
  43. RUN dnf module enable -y cobbler
  44. RUN dnf install -y cobbler
  45. RUN dnf install -y cobbler-web
  46. #Copy Configuration files
  47. COPY settings.yaml /etc/cobbler/settings.yaml
  48. COPY dhcp.template /etc/cobbler/dhcp.template
  49. COPY modules.conf /etc/cobbler/modules.conf
  50. COPY tftp /etc/xinetd.d/tftp
  51. COPY .users.digest /etc/cobbler/users.digest
  52. COPY cobbler_configurations_rocky.yml /root
  53. COPY tftp.yml /root
  54. COPY inventory_creation.yml /root
  55. COPY multi_cluster_provisioning.yml /root
  56. EXPOSE 69 80 443 25151
  57. VOLUME [ "/var/www/cobbler", "/var/lib/cobbler/backup", "/mnt" ]
  58. RUN systemctl enable dhcpd
  59. CMD ["sbin/init"]