forked from munnerz/scaleway-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
45 lines (38 loc) · 1.05 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
40
41
42
43
44
45
## -*- docker-image-name: "munnerz/scaleway-kubernetes:amd64" -*-
FROM scaleway/debian:amd64-sid
MAINTAINER James Munnelly <[email protected]>
# Prepare rootfs for image-builder.
# This script prevent aptitude to run services when installed
RUN /usr/local/sbin/builder-enter
# Install docker dependencies & upgrade system
RUN apt-get -q update \
&& apt-get -y -qq upgrade \
&& apt-get install -y -q \
apparmor \
arping \
aufs-tools \
btrfs-tools \
bridge-utils \
cgroupfs-mount \
git \
ifupdown \
kmod \
lxc \
python-setuptools \
vlan \
&& apt-get clean
# Install docker
RUN curl -L https://get.docker.com/ | sh
# Add local files into the root (extra config etc)
COPY ./rootfs/ /
# Add early-docker group
RUN addgroup early-docker
RUN systemctl enable docker \
&& systemctl enable early-docker \
&& systemctl enable etcd \
&& systemctl enable flannel \
&& systemctl enable update-firewall \
&& systemctl enable kubelet
# Clean rootfs from image-builder.
# Revert the builder-enter script
RUN /usr/local/sbin/builder-leave