-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
37 lines (31 loc) · 1.07 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM ubuntu:16.04
MAINTAINER Benedikt Heine [email protected]
ENV BASE=/srv/pixieboot \
# Vars, which would be usually defined in config.sh
INTEGRATIONS_ENABLED="dnsmasq nginx pxebinaries" \
SYSTEMS_ENABLED="ubuntu-16.04-mini ubuntu-14.04-mini netboot.xyz memtest local-harddrive" \
FILE_PXE_LINUX=/usr/lib/PXELINUX/pxelinux.0 \
FILE_PXE_MENU=/usr/lib/syslinux/modules/bios/menu.c32 \
FILE_DNSMASQ_CONFIG=/etc/dnsmasq.d/pixieboot.conf \
# Set the reload commands to true, as normal service-commands would fail
# and docker.sh is starting the services anyway
CMD_RELOAD_NGINX="true" \
CMD_RELOAD_DNSMASQ="true"
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y \
dnsmasq \
gettext-base \
ipxe \
memtest86+ \
nginx \
pxelinux \
wget \
xorriso \
&& rm -rf /var/lib/apt/lists/*
ADD . $BASE
# We have to define NFSHOST, as it is needed by setup.sh,
# but declaring it via ENV lets the container fail quietly.
RUN NFSHOST=127.0.0.1 ${BASE}/setup.sh
EXPOSE 67/udp 80/tcp
ENTRYPOINT ${BASE}/docker.sh