Dockerfile 655 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Dockerfile for creating the management network container
  2. FROM centos:8
  3. # RPM REPOs
  4. RUN dnf install -y \
  5. epel-release \
  6. && dnf clean all \
  7. && rm -rf /var/cache/dnf
  8. RUN dnf install -y dhcp-server
  9. RUN dnf install -y python3-netaddr
  10. RUN yum install -y \
  11. ansible \
  12. cronie \
  13. tftp\
  14. tftp-server\
  15. xinetd \
  16. net-tools \
  17. && yum clean all \
  18. && rm -rf /var/cache/yum
  19. RUN mkdir /root/omnia
  20. #Copy Configuration files
  21. COPY dhcpd.conf /etc/dhcp/dhcpd.conf
  22. COPY tftp /etc/xinetd.d/tftp
  23. COPY inventory_creation.yml /root/
  24. COPY mngmnt_container_configure.yml /root/
  25. RUN systemctl enable tftp
  26. RUN systemctl enable dhcpd
  27. CMD ["sbin/init"]