Skip to content

Commit

Permalink
Remove backends, Add Raspberry PI support:
Browse files Browse the repository at this point in the history
I was able to boil down what is required from the user to just
a custom user-class name to check for, a tftp, http, and ipxe script urls.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
  • Loading branch information
jacobweinstock committed Sep 24, 2021
1 parent 9c0342f commit 0959f0c
Show file tree
Hide file tree
Showing 16 changed files with 517 additions and 654 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# docker build -t proxydhcp .
# docker run -it --rm proxydhcp -tftp-addr 192.168.2.109 -http-addr 192.168.2.109 -ipxe-url http://192.168.2.109/auto.ipxe
FROM golang:1.16 as builder

WORKDIR /code
Expand All @@ -7,9 +9,10 @@ RUN go mod download
COPY . /code
RUN CGO_ENABLED=0 go build -o proxydhcp

FROM alpine
FROM scratch

COPY --from=builder /code/proxydhcp /proxydhcp
EXPOSE 67/udp
EXPOSE 4011/udp

ENTRYPOINT ["/proxydhcp"]
218 changes: 0 additions & 218 deletions backend/file/file.go

This file was deleted.

86 changes: 0 additions & 86 deletions cmd/file/file.go

This file was deleted.

1 change: 0 additions & 1 deletion cmd/kube/kube.go

This file was deleted.

Loading

0 comments on commit 0959f0c

Please sign in to comment.