mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 18:19:36 +00:00
scripts: Remove unused scripts, Dockerfiles, Makefile
* Remove unused scripts and avoid maintaining multiple ways of doing the exact same thing
This commit is contained in:
18
Makefile
18
Makefile
@@ -1,18 +0,0 @@
|
||||
|
||||
.PHONY: build
|
||||
|
||||
build:
|
||||
./build
|
||||
|
||||
build-docker:
|
||||
./docker-build
|
||||
|
||||
run-docker:
|
||||
./docker-run
|
||||
|
||||
run-pixiecore:
|
||||
./scripts/pixiecore
|
||||
|
||||
run-dhcp:
|
||||
./scripts/vethdhcp
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
docker run -p 8080:8080 --name=bootcfg --rm -v $PWD/data:/data:Z -v $PWD/images:/images:Z coreos/bootcfg:latest -address=0.0.0.0:8080 -data-path=/data -images-path=/images
|
||||
@@ -1,6 +0,0 @@
|
||||
FROM alpine:latest
|
||||
MAINTAINER Dalton Hubble <dalton.hubble@coreos.com>
|
||||
RUN apk -U add dnsmasq
|
||||
EXPOSE 53
|
||||
ENTRYPOINT ["dnsmasq", "-d"]
|
||||
CMD ["--dhcp-range=172.17.0.43,172.17.0.99,30m"]
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
REPO=dghubble/dhcp
|
||||
|
||||
docker build -q --rm=true -t $REPO:latest .
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
docker run --rm --cap-add=NET_ADMIN dghubble/dhcp
|
||||
@@ -1,8 +0,0 @@
|
||||
FROM alpine:latest
|
||||
MAINTAINER Dalton Hubble <dalton.hubble@coreos.com>
|
||||
RUN apk -U add dnsmasq curl
|
||||
COPY dnsmasq.conf /etc/dnsmasq.conf
|
||||
RUN mkdir -p /var/lib/tftpboot
|
||||
RUN curl -s -o /var/lib/tftpboot/undionly.kpxe http://boot.ipxe.org/undionly.kpxe
|
||||
EXPOSE 53 53/udp 67/udp
|
||||
ENTRYPOINT ["dnsmasq", "-d"]
|
||||
@@ -1,17 +0,0 @@
|
||||
dhcp-range=172.17.0.43,172.17.0.99,30m
|
||||
dhcp-authoritative
|
||||
|
||||
enable-tftp
|
||||
tftp-root=/var/lib/tftpboot
|
||||
|
||||
# set tag "ipxe" if request comes from iPXE ("iPXE" user class)
|
||||
dhcp-userclass=set:ipxe,iPXE
|
||||
|
||||
# if PXE request came from regular firmware, serve iPXE firmware (via TFTP)
|
||||
dhcp-boot=tag:!ipxe,undionly.kpxe
|
||||
|
||||
# if PXE request came from iPXE, serve an iPXE boot script (via HTTP)
|
||||
dhcp-boot=tag:ipxe,http://172.17.0.2:8080/boot.ipxe
|
||||
|
||||
log-queries
|
||||
log-dhcp
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
REPO=dghubble/ipxe
|
||||
|
||||
docker build -q --rm=true -t $REPO:latest .
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
docker run --rm --cap-add=NET_ADMIN dghubble/ipxe
|
||||
@@ -1,26 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
# Connect dnsmasq DHCP to the docker0 bridge via a veth
|
||||
|
||||
BRIDGE=docker0
|
||||
VETH=vethdhcp
|
||||
VETH_ADDR=172.17.0.42/16
|
||||
|
||||
# DHCP
|
||||
ADDR_RANGE_START=172.17.0.43
|
||||
ADDR_RANGE_END=172.17.0.99
|
||||
LEASE_TIME=30m
|
||||
|
||||
# create and attach the veth if it is missing
|
||||
if ! ip link show $VETH; then
|
||||
# create a virtual ethernet device (veth pair)
|
||||
ip link add $VETH type veth peer name ${VETH}_b
|
||||
# attach the "b" side of the veth to the bridge
|
||||
brctl addif $BRIDGE ${VETH}_b
|
||||
# assign an IP address to the veth
|
||||
ip addr add $VETH_ADDR dev $VETH
|
||||
# set both links to be up
|
||||
ip link set $VETH up
|
||||
ip link set $VETH_b up
|
||||
fi
|
||||
|
||||
dnsmasq --no-daemon --port=0 -i $VETH --dhcp-range=$ADDR_RANGE_START,$ADDR_RANGE_END,$LEASE_TIME
|
||||
Reference in New Issue
Block a user