openstack-helm-infra/tools/images/libvirt
Pete Birley 25985f7b43 Libvirt: escape kube cgroups and pid reaper
This PS moves to run the Libvirt process as a transient unit
on the host, free fom k8s controlled cgroups. In addition it
also uses the cloud archive provided libvirt/qemu packages.

Change-Id: Idfe9ae6f072acd86f877df0c3dfe3db4c20902d6
Signed-off-by: Pete Birley <pete@port.direct>
2018-10-03 19:11:00 +00:00
..
Dockerfile.ubuntu.xenial Libvirt: escape kube cgroups and pid reaper 2018-10-03 19:11:00 +00:00
Makefile Libvirt: escape kube cgroups and pid reaper 2018-10-03 19:11:00 +00:00
README.rst Libvirt: escape kube cgroups and pid reaper 2018-10-03 19:11:00 +00:00

Libvirt Container

This container builds a small image with Libvirt for use with OpenStack-Helm.

Instructions

OS Specific Host setup:

Ubuntu:

From a freshly provisioned Ubuntu 16.04 LTS host run:

sudo apt-get update -y
sudo apt-get install -y \
        docker.io \
        git

Build the Libvirt Image

A known good image is published to dockerhub on a fairly regular basis, but if you wish to build your own image, from the root directory of the OpenStack-Helm repo run:

TARGET_OPENSTACK_VERSION=ocata
DISTRO=ubuntu
DISTRO_RELEASE=xenial
CEPH_RELEASE=luminous

sudo docker build \
  --network=host \
  --force-rm \
  --pull \
  --no-cache \
  --file=./tools/images/libvirt/Dockerfile.${DISTRO}.xenial \
  --build-arg TARGET_OPENSTACK_VERSION="${TARGET_OPENSTACK_VERSION}" \
  --build-arg CEPH_RELEASE="${CEPH_RELEASE}" \
  -t docker.io/openstackhelm/libvirt:${DISTRO}-${DISTRO_RELEASE}-${TARGET_OPENSTACK_VERSION} \
  tools/images/libvirt
sudo docker push docker.io/openstackhelm/libvirt:${DISTRO}-${DISTRO_RELEASE}-${TARGET_OPENSTACK_VERSION}