forked from Mirantis/virtlet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (22 loc) · 905 Bytes
/
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
FROM ubuntu:16.04
# TODO: try to go back to alpine
MAINTAINER Ivan Shvedunov <[email protected]>
LABEL Name="virtlet" Version="0.1"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get install -y libvirt-bin libguestfs0 libguestfs-tools \
openssl qemu-kvm qemu-system-x86 python-libvirt \
netbase iproute2 iptables ebtables && \
apt-get clean
RUN mkdir -p /var/data/virtlet /var/lib/virtlet /opt/cni/bin && \
curl -L https://github.com/containernetworking/cni/releases/download/v0.3.0/cni-v0.3.0.tgz | \
tar zxC /opt/cni/bin
COPY image_skel /.
COPY _output/flexvolume_driver /
CMD ["/start.sh"]
# Integration tests look for virtlet in $PATH
# and we want it to be located in the same place both
# in build/test image and production one
COPY _output/virtlet /usr/local/bin
COPY _output/vmwrapper /
COPY _output/criproxy /