Skip to content
Snippets Groups Projects
Commit 48b922cb authored by Paul Bourke's avatar Paul Bourke
Browse files

Add build from source for Nova

Partially-implements: blueprint install-from-source
Change-Id: I7b900b2f412667e0b4a36e9a46867b85ba54a8cc
parent 07184293
No related branches found
No related tags found
No related merge requests found
Showing
with 91 additions and 0 deletions
......@@ -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 \
......
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"]
../../../../../tools/build-docker-image
\ No newline at end of file
../../../../common/nova/nova-api/check.sh
\ No newline at end of file
../../../../common/nova/nova-api/config-external.sh
\ No newline at end of file
../../../../common/nova/nova-api/config-internal.sh
\ No newline at end of file
../../../../common/nova/nova-api/start.sh
\ No newline at end of file
# 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}
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
../../../../../tools/build-docker-image
\ No newline at end of file
../../../../common/nova/nova-base/config-nova.sh
\ No newline at end of file
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"]
../../../../../tools/build-docker-image
\ No newline at end of file
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"]
../../../../../tools/build-docker-image
\ No newline at end of file
../../../../common/nova/nova-compute/config-external.sh
\ No newline at end of file
../../../../common/nova/nova-compute/config-internal.sh
\ No newline at end of file
../../../../common/nova/nova-compute/config-nova-compute.sh
\ No newline at end of file
../../../../common/nova/nova-compute/start.sh
\ No newline at end of file
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"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment