github.com/mirantis/virtlet@v1.5.2-0.20191204181327-1659b8a48e9b/images/Dockerfile.virtlet-base (about)

     1  FROM ubuntu:16.04
     2  MAINTAINER Ivan Shvedunov <ishvedunov@mirantis.com>
     3  
     4  # BUMP 23.11.2018
     5  
     6  ENV DEBIAN_FRONTEND noninteractive
     7  
     8  RUN echo deb-src http://archive.ubuntu.com/ubuntu/ xenial main universe restricted >>/etc/apt/sources.list && \
     9      echo deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates main universe restricted >>/etc/apt/sources.list
    10  
    11  RUN apt-get -y update && \
    12      apt-get -y build-dep libguestfs && \
    13      apt-get -y build-dep supermin && \
    14      apt-get -y install git libjansson-dev libhivex-ocaml-dev
    15  
    16  RUN git clone https://github.com/libguestfs/supermin.git && \
    17      cd supermin && \
    18      git checkout v5.1.19 && \
    19      ./bootstrap && \
    20      ./autogen.sh --prefix=/usr/local && \
    21      make -j$(grep -c ^processor /proc/cpuinfo) install
    22  
    23  RUN git clone https://github.com/libguestfs/libguestfs.git && \
    24      cd libguestfs && \
    25      git checkout v1.39.1 && \
    26      ./autogen.sh --prefix=/usr/local && \
    27      make -j$(grep -c ^processor /proc/cpuinfo); rm po-docs/podfiles && \
    28      make -C po-docs update-po -j$(grep -c ^processor /proc/cpuinfo) && \
    29      make -j$(grep -c ^processor /proc/cpuinfo) install REALLY_INSTALL=yes
    30  
    31  FROM ubuntu:16.04
    32  MAINTAINER Ivan Shvedunov <ishvedunov@mirantis.com>
    33  
    34  LABEL virtlet.image="virtlet-base"
    35  
    36  COPY --from=0 /usr/local /usr/local
    37  
    38  ENV DEBIAN_FRONTEND noninteractive
    39  
    40  RUN apt-get update && apt-get install -y curl && \
    41      echo deb http://mirror.mirantis.com/stable/openstack-queens/xenial xenial main >>/etc/apt/sources.list && \
    42      curl http://mirror.mirantis.com/stable/openstack-queens/xenial/archive-queens.key | apt-key add - && \
    43      apt-get update && \
    44      apt-get install -y libvirt-bin libvirt-daemon libvirt-dev bridge-utils \
    45                         openssl qemu-kvm \
    46                         netbase iptables ebtables vncsnapshot \
    47                         socat netcat-openbsd \
    48                         acl attr binutils bsdmainutils btrfs-tools \
    49                         bzip2 cpio cryptsetup curl dosfstools extlinux \
    50                         file gawk gdisk genisoimage iproute iproute2 \
    51                         isc-dhcp-client kmod less libaugeas0 \
    52                         libavahi-client3 libavahi-common3 libcap-ng0 \
    53                         libcurl3-gnutls libdbus-1-3 libfuse2 libgnutls30 \
    54                         libhivex0 libmagic1 libnl-3-200 \
    55                         libnuma1 libsasl2-2 libxen-4.6 libxml2 libyajl2 \
    56                         lsscsi lvm2 lzop mdadm module-init-tools \
    57                         mtools ntfs-3g openssh-client parted psmisc \
    58                         qemu-system-x86 qemu-utils scrub syslinux \
    59                         udev xz-utils zerofree libjansson4 \
    60                         dnsmasq libpcap0.8 libnetcf1 dmidecode && \
    61      apt-get clean
    62  
    63  # TODO: try to go back to alpine
    64  # TODO: check which libs are really needed for libvirt / libguestfs / supermin
    65  # and which aren't