Dockerfile 605 B

12345678910111213141516171819202122232425262728
  1. FROM rockylinux/rockylinux:docker_os
  2. RUN dnf -y update && dnf clean all
  3. RUN dnf install -y epel-release
  4. RUN dnf install dhcp-server -y \
  5. ansible \
  6. cronie \
  7. net-tools
  8. RUN dnf groupinstall "Infiniband Support" -y
  9. RUN dnf install -y opensm
  10. RUN dnf clean all && \
  11. rm -rf /var/cache/yum
  12. #Creation of directories and files
  13. RUN mkdir /root/omnia
  14. RUN touch /var/lib/dhcpd/dhcpd.leases
  15. #Copy Configuration files
  16. COPY dhcpd.conf /etc/dhcp/dhcpd.conf
  17. COPY opensm.conf /etc/rdma/opensm.conf
  18. COPY start.sh /
  19. RUN systemctl enable dhcpd
  20. RUN chmod +x /start.sh
  21. ENTRYPOINT ["/start.sh"]
  22. CMD ["sbin/init"]