Dockerfile 516 B

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