Initial commit

This commit is contained in:
Oliver Traber 2022-05-12 23:15:51 +02:00
commit 50f2a54331
Signed by: Bluemedia
GPG key ID: C0674B105057136C
21 changed files with 276 additions and 0 deletions

View file

@ -0,0 +1,2 @@
*
!.gitignore

View file

@ -0,0 +1,2 @@
*
!.gitignore

View file

@ -0,0 +1,2 @@
*
!.gitignore

View file

@ -0,0 +1,2 @@
*
!.gitignore

View file

@ -0,0 +1,7 @@
FROM alpine:latest
RUN apk add dhcp
RUN touch /var/lib/dhcp/dhcpd.leases
CMD [ "dhcpd", "-d", "-f", "-cf", "/etc/dhcp/dhcpd.conf" ]

View file

@ -0,0 +1,22 @@
version: "3"
services:
dhcp:
build: ./dhcp
volumes:
- ./data/pxe-config/dhcpd.conf:/etc/dhcp/dhcpd.conf
network_mode: host
tftp:
build: ./tftp
network_mode: host
volumes:
- ./data/pxe-config/grub.cfg:/var/lib/tftpboot/grub.cfg
- ./data/os/debian-installer/amd64/grubx64.efi:/var/lib/tftpboot/grubx64.efi
- ./data/os/debian-installer/amd64/initrd.gz:/var/lib/tftpboot/initrd.gz
- ./data/os/debian-installer/amd64/linux:/var/lib/tftpboot/linux
http:
image: nginx:latest
network_mode: host
volumes:
- ./data/os:/usr/share/nginx/html/os:ro
- ./data/preseed:/usr/share/nginx/html/preseed:ro

View file

@ -0,0 +1,11 @@
server {
listen 80;
listen [::]:80;
server_name default;
root /var/www/html;
location / {
try_files $uri $uri/ =404;
}
}

View file

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