25985f7b43
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>
44 lines
1.6 KiB
Docker
44 lines
1.6 KiB
Docker
FROM docker.io/ubuntu:xenial
|
|
MAINTAINER pete.birley@att.com
|
|
|
|
ARG TARGET_OPENSTACK_VERSION=ocata
|
|
ARG CEPH_RELEASE=luminous
|
|
ARG PROJECT=nova
|
|
ARG UID=42424
|
|
ARG GID=42424
|
|
|
|
ADD https://download.ceph.com/keys/release.asc /etc/apt/ceph-release.asc
|
|
RUN set -ex ;\
|
|
export DEBIAN_FRONTEND=noninteractive ;\
|
|
apt-key add /etc/apt/ceph-release.asc ;\
|
|
rm -f /etc/apt/ceph-release.asc ;\
|
|
echo "deb http://download.ceph.com/debian-${CEPH_RELEASE}/ xenial main" | tee /etc/apt/sources.list.d/ceph.list ;\
|
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5EDB1B62EC4926EA ;\
|
|
echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/${TARGET_OPENSTACK_VERSION} main" | tee /etc/apt/sources.list.d/cloud-archive.list ;\
|
|
apt-get update ;\
|
|
apt-get upgrade -y ;\
|
|
apt-get install --no-install-recommends -y \
|
|
ceph-common \
|
|
cgroup-tools \
|
|
dmidecode \
|
|
ebtables \
|
|
iproute2 \
|
|
libvirt-bin \
|
|
pm-utils \
|
|
qemu \
|
|
qemu-block-extra \
|
|
qemu-efi \
|
|
openvswitch-switch ;\
|
|
groupadd -g ${GID} ${PROJECT} ;\
|
|
useradd -u ${UID} -g ${PROJECT} -M -d /var/lib/${PROJECT} -s /usr/sbin/nologin -c "${PROJECT} user" ${PROJECT} ;\
|
|
mkdir -p /etc/${PROJECT} /var/log/${PROJECT} /var/lib/${PROJECT} /var/cache/${PROJECT} ;\
|
|
chown ${PROJECT}:${PROJECT} /etc/${PROJECT} /var/log/${PROJECT} /var/lib/${PROJECT} /var/cache/${PROJECT} ;\
|
|
usermod -a -G kvm ${PROJECT} ;\
|
|
apt-get clean -y ;\
|
|
rm -rf \
|
|
/var/cache/debconf/* \
|
|
/var/lib/apt/lists/* \
|
|
/var/log/* \
|
|
/tmp/* \
|
|
/var/tmp/*
|