Dockerfile 483 B

1234567891011121314151617181920
  1. # Dockerfile for creating the management network container
  2. FROM alpine:docker_os
  3. #Installing packages
  4. RUN apk add dhcp
  5. RUN apk add ansible
  6. RUN apk add openrc
  7. RUN apk add py3-netaddr
  8. #Creation of directories and files
  9. RUN mkdir /root/omnia
  10. RUN mkdir /etc/periodic/5min
  11. RUN touch /var/lib/dhcp/dhcpd.leases
  12. #Copy Configuration files
  13. COPY dhcpd.conf /etc/dhcp/dhcpd.conf
  14. COPY inventory_creation.yml /root/
  15. COPY mngmnt_container_configure.yml /root/
  16. COPY cron_inv /etc/periodic/5min