tftp-docker

This commit is contained in:
Alexander Zhirov 2023-01-30 17:10:02 +03:00
commit 696f790413
5 changed files with 23 additions and 0 deletions

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM alpine:3.16
COPY tftp-hpa-5.2-r4.apk /tmp/
COPY packager-62fdf15d.rsa.pub /etc/apk/keys/
RUN apk add --no-cache /tmp/tftp-hpa-5.2-r4.apk && rm /tmp/tftp-hpa-5.2-r4.apk
COPY remap.conf /etc/conf.d/
VOLUME /var/tftpboot
EXPOSE 69/udp
CMD ["sh", "-c", "busybox syslogd -n -O /dev/stdout & in.tftpd -Lvvv --secure /var/tftpboot -m /etc/conf.d/remap.conf"]

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# TFTP Docker
Docker контейнер сервера TFTP с поддержкой [фильтра](remap.conf)

View File

@ -0,0 +1,9 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7X2j1S7QDmBUQLyzytZ2
GjpYYEgOq7drzyaGeYIL2GY8rm2CytHQxeo2OfSUESUb/sad9kBw2NXlA1AOi/9m
aES25+IxOGa0koBkRm8jmPPm5Wbeh1zqWHIjNH3uaiPPZvgFqUL/boeuRDQ4cDjr
8R3eHSAED+SwmnvSiJCFeMjGfHIduc9k/L7F0l4RSs50WHFwzNXB4xebJnbwCUN1
c/W4aBCew0k1vzXxVuwe2YpUoeGYo0veNvKX5xKKNMhC6EJoVmjBDcXCOtN+F3GN
vNaUO6JslC7nYAWxK5/CRUuICZajs5/+GaO7/rPC8vGnMGDw9aTOH7bISN+zHDHq
9wIDAQAB
-----END PUBLIC KEY-----

3
remap.conf Normal file
View File

@ -0,0 +1,3 @@
rg \\ /
ri (loader_uefi\/syslinux\.efi).*$ \1
ri (loader_legacy\/pxelinux\.0).*$ \1

BIN
tftp-hpa-5.2-r4.apk Normal file

Binary file not shown.