Merge "Port stx-libvirt base image to stx-debian"
This commit is contained in:
commit
edc77c3cec
@ -1 +1,2 @@
|
|||||||
kubernetes/n3000
|
kubernetes/n3000
|
||||||
|
virt/libvirt
|
||||||
|
54
virt/libvirt/debian/docker/Dockerfile
Normal file
54
virt/libvirt/debian/docker/Dockerfile
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
# Expected build arguments:
|
||||||
|
# BASE: specify base layer
|
||||||
|
# REPO_OPTS: yum options to enable StarlingX repo
|
||||||
|
#
|
||||||
|
ARG BASE
|
||||||
|
FROM ${BASE} AS stx
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
ARG PROJECT=nova
|
||||||
|
ARG UID=42424
|
||||||
|
ARG GID=42424
|
||||||
|
|
||||||
|
RUN apt-get -y update \
|
||||||
|
&& apt-get -y install \
|
||||||
|
ceph-common \
|
||||||
|
dmidecode \
|
||||||
|
iptables \
|
||||||
|
iproute2 \
|
||||||
|
cgroup-tools \
|
||||||
|
libcgroup1 \
|
||||||
|
libnss-libvirt \
|
||||||
|
libvirt0 \
|
||||||
|
libvirt-clients \
|
||||||
|
libvirt-daemon \
|
||||||
|
libvirt-daemon-config-network \
|
||||||
|
libvirt-daemon-config-nwfilter \
|
||||||
|
libvirt-daemon-driver-lxc \
|
||||||
|
libvirt-daemon-driver-qemu \
|
||||||
|
libvirt-daemon-driver-storage-gluster \
|
||||||
|
libvirt-daemon-system \
|
||||||
|
libvirt-daemon-system-systemd \
|
||||||
|
libvirt-login-shell \
|
||||||
|
pm-utils \
|
||||||
|
qemu \
|
||||||
|
qemu-block-extra \
|
||||||
|
qemu-system-common \
|
||||||
|
qemu-system-data \
|
||||||
|
qemu-system-x86 \
|
||||||
|
qemu-guest-agent \
|
||||||
|
openvswitch-common \
|
||||||
|
openvswitch-switch \
|
||||||
|
openvswitch-switch-dpdk \
|
||||||
|
python3-openvswitch \
|
||||||
|
&& apt-get -y clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN 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} ;\
|
||||||
|
rm -rf /var/log/* /tmp/* /var/tmp/*
|
||||||
|
|
2
virt/libvirt/debian/stx-libvirt.stable_docker_image
Normal file
2
virt/libvirt/debian/stx-libvirt.stable_docker_image
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
BUILDER=docker
|
||||||
|
LABEL=stx-libvirt
|
Loading…
Reference in New Issue
Block a user