diff --git a/Makefile b/Makefile deleted file mode 100644 index 868dcde8..00000000 --- a/Makefile +++ /dev/null @@ -1,18 +0,0 @@ - -.PHONY: build - -build: - ./build - -build-docker: - ./docker-build - -run-docker: - ./docker-run - -run-pixiecore: - ./scripts/pixiecore - -run-dhcp: - ./scripts/vethdhcp - diff --git a/docker-run b/docker-run deleted file mode 100755 index e085e257..00000000 --- a/docker-run +++ /dev/null @@ -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 \ No newline at end of file diff --git a/dockerfiles/dhcp/Dockerfile b/dockerfiles/dhcp/Dockerfile deleted file mode 100644 index a2951ce2..00000000 --- a/dockerfiles/dhcp/Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -FROM alpine:latest -MAINTAINER Dalton Hubble -RUN apk -U add dnsmasq -EXPOSE 53 -ENTRYPOINT ["dnsmasq", "-d"] -CMD ["--dhcp-range=172.17.0.43,172.17.0.99,30m"] diff --git a/dockerfiles/dhcp/docker-build b/dockerfiles/dhcp/docker-build deleted file mode 100755 index da640ae0..00000000 --- a/dockerfiles/dhcp/docker-build +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -e - -REPO=dghubble/dhcp - -docker build -q --rm=true -t $REPO:latest . \ No newline at end of file diff --git a/dockerfiles/dhcp/docker-run b/dockerfiles/dhcp/docker-run deleted file mode 100755 index 34c0f42c..00000000 --- a/dockerfiles/dhcp/docker-run +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -e - -docker run --rm --cap-add=NET_ADMIN dghubble/dhcp diff --git a/dockerfiles/ipxe/Dockerfile b/dockerfiles/ipxe/Dockerfile deleted file mode 100644 index 22e4f3fe..00000000 --- a/dockerfiles/ipxe/Dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -FROM alpine:latest -MAINTAINER Dalton Hubble -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"] \ No newline at end of file diff --git a/dockerfiles/ipxe/dnsmasq.conf b/dockerfiles/ipxe/dnsmasq.conf deleted file mode 100644 index 81da8aa1..00000000 --- a/dockerfiles/ipxe/dnsmasq.conf +++ /dev/null @@ -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 diff --git a/dockerfiles/ipxe/docker-build b/dockerfiles/ipxe/docker-build deleted file mode 100755 index 0fca8000..00000000 --- a/dockerfiles/ipxe/docker-build +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -e - -REPO=dghubble/ipxe - -docker build -q --rm=true -t $REPO:latest . \ No newline at end of file diff --git a/dockerfiles/ipxe/docker-run b/dockerfiles/ipxe/docker-run deleted file mode 100755 index cdfa0a67..00000000 --- a/dockerfiles/ipxe/docker-run +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -e - -docker run --rm --cap-add=NET_ADMIN dghubble/ipxe diff --git a/scripts/vethdhcp b/scripts/vethdhcp deleted file mode 100755 index 8b82707d..00000000 --- a/scripts/vethdhcp +++ /dev/null @@ -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 \ No newline at end of file