Add build from source for Nova

Partially-implements: blueprint install-from-source
Change-Id: I7b900b2f412667e0b4a36e9a46867b85ba54a8cc
This commit is contained in:
Paul Bourke 2015-07-16 14:46:52 +00:00
parent 0718429344
commit 48b922cba4
50 changed files with 173 additions and 0 deletions

View File

@ -10,10 +10,12 @@ RUN yum install -y \
libxml2-devel \
libxslt-devel \
mariadb \
mariadb-devel \
mysql-devel \
MySQL-python \
openssl \
openssl-devel \
postgresql \
postgresql-devel \
python-devel \
python-oslo-policy \

View File

@ -0,0 +1,9 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%nova-base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
ADD ./start.sh /start.sh
ADD ./check.sh /check.sh
COPY config-internal.sh config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../../common/nova/nova-api/check.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-api/config-external.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-api/config-internal.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-api/start.sh

View File

@ -0,0 +1,11 @@
# Build info specific to this image. All values can be overridden in .buildconf
SOURCE_INSTALL_METHOD=curl
COMPONENT=nova
SOURCE_INSTALL_AVAILABLE=1
# Used for git install method
: ${CLONE_FROM:=https://github.com/openstack/nova}
# Used for curl install method
: ${TARBALL_URI:=http://tarballs.openstack.org/nova/nova-master.tar.gz}

View File

@ -0,0 +1,26 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
RUN yum -y install \
bridge-utils \
&& yum clean all
RUN pip install \
python-cinderclient \
python-keystoneclient
ADD ./nova.tar /
RUN ln -s /nova-* /nova
RUN cd /nova \
&& useradd --user-group nova \
&& pip install -r requirements.txt \
&& pip install /nova \
&& tox -egenconfig \
&& mkdir /etc/nova /var/log/nova \
&& cp /nova/etc/nova/nova.conf.sample /etc/nova/nova.conf \
&& cp -r /nova/etc/nova/* /etc/nova/ \
&& chown -R nova: /etc/nova /var/log/nova \
&& rm -rf /root/.cache
COPY config-nova.sh /opt/kolla/config-nova.sh

View File

@ -0,0 +1 @@
../../../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../../common/nova/nova-base/config-nova.sh

View File

@ -0,0 +1,10 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
VOLUME [ "/var/lib/nova" ]
VOLUME [ "/var/lib/libvirt" ]
VOLUME [ "/etc/libvirt/qemu" ]
# Command needed to start the data container.
# Note: data containers do not need to be persistent.
CMD ["/bin/true"]

View File

@ -0,0 +1 @@
../../../../../tools/build-docker-image

View File

@ -0,0 +1,12 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%nova-base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
RUN yum -y install sysfsutils && yum clean all
COPY ./start.sh /start.sh
COPY config-nova-compute.sh config-internal.sh config-external.sh /opt/kolla/
VOLUME [ "/sys/fs/cgroup" ]
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../../common/nova/nova-compute/config-external.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-compute/config-internal.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-compute/config-nova-compute.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-compute/start.sh

View File

@ -0,0 +1,8 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%nova-base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
ADD ./start.sh /start.sh
COPY config-internal.sh config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../../common/nova/nova-conductor/config-external.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-conductor/config-internal.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-conductor/start.sh

View File

@ -0,0 +1,8 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%nova-base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
ADD start.sh /start.sh
COPY config-internal.sh config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../../common/nova/nova-consoleauth/config-external.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-consoleauth/config-internal.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-consoleauth/start.sh

View File

@ -0,0 +1,18 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
RUN yum -y install libvirt-daemon \
libguestfs \
qemu-system-x86 \
libvirt-daemon-driver-nwfilter \
libvirt-daemon-config-nwfilter \
libvirt-daemon-driver-lxc \
&& yum clean all
VOLUME [ "/sys/fs/cgroup" ]
COPY ./start.sh /start.sh
COPY config-internal.sh config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../../common/nova/nova-libvirt/config-external.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-libvirt/config-internal.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-libvirt/start.sh

View File

@ -0,0 +1,10 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%nova-base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
RUN yum -y install initscripts && yum clean all
COPY ./start.sh /start.sh
COPY config-nova-network.sh config-internal.sh config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../../common/nova/nova-network/config-external.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-network/config-internal.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-network/config-nova-network.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-network/start.sh

View File

@ -0,0 +1,13 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%nova-base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
RUN yum -y install \
https://rdoproject.org/repos/openstack-kilo/rdo-release-kilo.rpm \
novnc \
&& yum clean all
COPY start.sh /start.sh
COPY config-internal.sh config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../../common/nova/nova-novncproxy/config-external.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-novncproxy/config-internal.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-novncproxy/start.sh

View File

@ -0,0 +1,8 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%nova-base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
COPY ./start.sh /start.sh
COPY config-internal.sh config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../../common/nova/nova-scheduler/config-external.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-scheduler/config-internal.sh

View File

@ -0,0 +1 @@
../../../../common/nova/nova-scheduler/start.sh