feat(metal): show DHCP and TFTP logs

This commit is contained in:
Khue Doan 2022-02-20 16:01:42 +07:00
parent f9c900b0dd
commit 1812ac67be
2 changed files with 5 additions and 3 deletions

View File

@ -4,4 +4,4 @@ RUN apk add dhcp
RUN touch /var/lib/dhcp/dhcpd.leases
CMD [ "dhcpd", "-f", "-cf", "/etc/dhcp/dhcpd.conf" ]
CMD [ "dhcpd", "-d", "-f", "-cf", "/etc/dhcp/dhcpd.conf" ]

View File

@ -1,5 +1,7 @@
FROM alpine:3
RUN apk add tftp-hpa
RUN apk add busybox tftp-hpa
CMD [ "in.tftpd", "--foreground", "--secure", "/var/lib/tftpboot" ]
ENTRYPOINT [ "/bin/sh", "-c" ]
CMD [ "busybox syslogd -n -O /dev/stdout & in.tftpd -vvv --foreground --secure /var/lib/tftpboot" ]