Dockerfile_leap 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. FROM registry.opensuse.org/opensuse/leap:docker_os
  2. #Enable all repose
  3. RUN zypper mr -ea
  4. # Refresh and update the repo
  5. RUN zypper --gpg-auto-import-keys refresh
  6. RUN zypper --gpg-auto-import-keys up -y
  7. #Enable systemd
  8. RUN zypper in -y dbus-1 systemd-sysvinit
  9. RUN cp /usr/lib/systemd/system/dbus.service /etc/systemd/system/; \
  10. sed -i 's/OOMScoreAdjust=-900//' /etc/systemd/system/dbus.service
  11. VOLUME ["/sys/fs/cgroup", "/run"]
  12. RUN zypper in -y git-core
  13. RUN git clone -b v3.2.2 https://github.com/cobbler/cobbler.git
  14. RUN cd cobbler/
  15. RUN mkdir /root/omnia
  16. RUN zypper in --no-confirm python3-librepo \
  17. python3-schema \
  18. syslinux \
  19. wget \
  20. dhcp-server \
  21. python3-pykickstart \
  22. dnf-plugins-core \
  23. cronie \
  24. xinetd \
  25. python3-coverage \
  26. python3-Cheetah3 \
  27. python3-netaddr \
  28. python3-devel \
  29. python3-future \
  30. apache2-mod_wsgi-python3 \
  31. gcc \
  32. python-rpm-macros \
  33. rpm-build \
  34. ansible \
  35. grub2-x86_64-efi \
  36. shim \
  37. yum-utils \
  38. python3-Sphinx \
  39. python3-wheel \
  40. bash-completion \
  41. tftp \
  42. vim
  43. RUN useradd -ms /bin/bash dhcpd
  44. #Copy Configuration files
  45. COPY settings.yaml /etc/cobbler/settings.yaml
  46. COPY dhcp.template /etc/cobbler/dhcp.template
  47. COPY modules.conf /etc/cobbler/modules.conf
  48. COPY tftp /etc/xinetd.d/tftp
  49. COPY .users.digest /etc/cobbler/users.digest
  50. COPY cobbler_configurations_leap.yml /root
  51. COPY tftp.yml /root
  52. COPY inventory_creation.yml /root
  53. COPY multi_cluster_provisioning.yml /root
  54. EXPOSE 69 80 443 25151
  55. VOLUME [ "/srv/www/cobbler", "/var/lib/cobbler/backup", "/mnt" ]
  56. RUN systemctl enable dhcpd
  57. CMD ["sbin/init"]