3f8895b2b7
This PS moves to use a lightweight libvirt 1.3.1 image based on ubuntu xenial for used with newton openstack. Change-Id: I99f64bba7aca3896fc3d32884c3e6f59ff088f79
41 lines
1.3 KiB
Docker
41 lines
1.3 KiB
Docker
FROM docker.io/ubuntu:xenial
|
|
MAINTAINER pete.birley@att.com
|
|
|
|
ARG LIBVIRT_VERSION=1.3.1-1ubuntu10.18
|
|
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-get update ;\
|
|
apt-get upgrade -y ;\
|
|
apt-get install --no-install-recommends -y \
|
|
ceph-common \
|
|
dmidecode \
|
|
ebtables \
|
|
iproute2 \
|
|
libvirt-bin=${LIBVIRT_VERSION} \
|
|
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/*
|