-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
39 lines (28 loc) · 1.77 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
38
39
FROM ubuntu:14.04
MAINTAINER Quanlong He <kyan.ql.he@gmail.com>
RUN echo "deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse" > /etc/apt/sources.list && \
echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse" >> /etc/apt/sources.list && \
echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse" >> /etc/apt/sources.list && \
echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse" >> /etc/apt/sources.list && \
echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse" >> /etc/apt/sources.list
# Install deps
RUN apt-get update && apt-get install -y dnsmasq syslinux wget
COPY app /app
# Install pxelinux.0
RUN mkdir app/tftp && cp /usr/lib/syslinux/pxelinux.0 /app/tftp
# Install coreos pxe images
RUN cd /app/tftp && \
wget -q http://stable.release.core-os.net/amd64-usr/current/coreos_production_pxe.vmlinuz && \
wget -q http://stable.release.core-os.net/amd64-usr/current/coreos_production_pxe_image.cpio.gz
# wget -q http://stable.release.core-os.net/amd64-usr/current/coreos_production_pxe.vmlinuz.sig && \
# wget -q http://stable.release.core-os.net/amd64-usr/current/coreos_production_pxe_image.cpio.gz.sig && \
# wget -qO- https://coreos.com/security/image-signing-key/CoreOS_Image_Signing_Key.pem | gpg --import && \
# gpg --verify coreos_production_pxe.vmlinuz.sig && \
# gpg --verify coreos_production_pxe_image.cpio.gz.sig
# RUN chmod 644 pxe/pxelinux.cfg/default && \
# chmod 644 pxe/pxelinux.0 && \
# chmod 644 pxe/coreos_production_pxe_image.cpio.gz && \
# chmod 644 pxe/coreos_production_pxe.vmlinuz
# Customizations
ENV INTERFACE=eth1
CMD /app/init