Fully working implementation

This commit is contained in:
Josh Kunz
2019-03-11 00:35:19 -07:00
commit b17ffa6d6f
5 changed files with 173 additions and 0 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM debian:buster-20190228-slim
RUN apt-get update && apt-get -y upgrade && \
apt-get --no-install-recommends -y install \
iproute2 \
jq \
python3 \
qemu-system-x86 \
udhcpd \
&& apt-get clean
COPY generate-dhcpd-conf /run/
COPY qemu-ifdown /run/
COPY qemu-ifup /run/
COPY run.sh /run/
VOLUME /image
ENTRYPOINT ["/run/run.sh"]
# Mostly users will probably want to configure memory usage.
CMD ["-m", "512M"]