Add build from source for Nova
Partially-implements: blueprint install-from-source Change-Id: I7b900b2f412667e0b4a36e9a46867b85ba54a8cc
This commit is contained in:
parent
0718429344
commit
48b922cba4
@ -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 \
|
||||
|
9
docker/centos/source/nova/nova-api/Dockerfile
Normal file
9
docker/centos/source/nova/nova-api/Dockerfile
Normal 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"]
|
1
docker/centos/source/nova/nova-api/build
Symbolic link
1
docker/centos/source/nova/nova-api/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
1
docker/centos/source/nova/nova-api/check.sh
Symbolic link
1
docker/centos/source/nova/nova-api/check.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-api/check.sh
|
1
docker/centos/source/nova/nova-api/config-external.sh
Symbolic link
1
docker/centos/source/nova/nova-api/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-api/config-external.sh
|
1
docker/centos/source/nova/nova-api/config-internal.sh
Symbolic link
1
docker/centos/source/nova/nova-api/config-internal.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-api/config-internal.sh
|
1
docker/centos/source/nova/nova-api/start.sh
Symbolic link
1
docker/centos/source/nova/nova-api/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-api/start.sh
|
11
docker/centos/source/nova/nova-base/.buildinfo
Normal file
11
docker/centos/source/nova/nova-base/.buildinfo
Normal 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}
|
26
docker/centos/source/nova/nova-base/Dockerfile
Normal file
26
docker/centos/source/nova/nova-base/Dockerfile
Normal 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
|
1
docker/centos/source/nova/nova-base/build
Symbolic link
1
docker/centos/source/nova/nova-base/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
1
docker/centos/source/nova/nova-base/config-nova.sh
Symbolic link
1
docker/centos/source/nova/nova-base/config-nova.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-base/config-nova.sh
|
10
docker/centos/source/nova/nova-compute-data/Dockerfile
Normal file
10
docker/centos/source/nova/nova-compute-data/Dockerfile
Normal 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"]
|
1
docker/centos/source/nova/nova-compute-data/build
Symbolic link
1
docker/centos/source/nova/nova-compute-data/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
12
docker/centos/source/nova/nova-compute/Dockerfile
Normal file
12
docker/centos/source/nova/nova-compute/Dockerfile
Normal 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"]
|
1
docker/centos/source/nova/nova-compute/build
Symbolic link
1
docker/centos/source/nova/nova-compute/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
1
docker/centos/source/nova/nova-compute/config-external.sh
Symbolic link
1
docker/centos/source/nova/nova-compute/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-compute/config-external.sh
|
1
docker/centos/source/nova/nova-compute/config-internal.sh
Symbolic link
1
docker/centos/source/nova/nova-compute/config-internal.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-compute/config-internal.sh
|
1
docker/centos/source/nova/nova-compute/config-nova-compute.sh
Symbolic link
1
docker/centos/source/nova/nova-compute/config-nova-compute.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-compute/config-nova-compute.sh
|
1
docker/centos/source/nova/nova-compute/start.sh
Symbolic link
1
docker/centos/source/nova/nova-compute/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-compute/start.sh
|
8
docker/centos/source/nova/nova-conductor/Dockerfile
Normal file
8
docker/centos/source/nova/nova-conductor/Dockerfile
Normal 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"]
|
1
docker/centos/source/nova/nova-conductor/build
Symbolic link
1
docker/centos/source/nova/nova-conductor/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
1
docker/centos/source/nova/nova-conductor/config-external.sh
Symbolic link
1
docker/centos/source/nova/nova-conductor/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-conductor/config-external.sh
|
1
docker/centos/source/nova/nova-conductor/config-internal.sh
Symbolic link
1
docker/centos/source/nova/nova-conductor/config-internal.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-conductor/config-internal.sh
|
1
docker/centos/source/nova/nova-conductor/start.sh
Symbolic link
1
docker/centos/source/nova/nova-conductor/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-conductor/start.sh
|
8
docker/centos/source/nova/nova-consoleauth/Dockerfile
Normal file
8
docker/centos/source/nova/nova-consoleauth/Dockerfile
Normal 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"]
|
1
docker/centos/source/nova/nova-consoleauth/build
Symbolic link
1
docker/centos/source/nova/nova-consoleauth/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
1
docker/centos/source/nova/nova-consoleauth/config-external.sh
Symbolic link
1
docker/centos/source/nova/nova-consoleauth/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-consoleauth/config-external.sh
|
1
docker/centos/source/nova/nova-consoleauth/config-internal.sh
Symbolic link
1
docker/centos/source/nova/nova-consoleauth/config-internal.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-consoleauth/config-internal.sh
|
1
docker/centos/source/nova/nova-consoleauth/start.sh
Symbolic link
1
docker/centos/source/nova/nova-consoleauth/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-consoleauth/start.sh
|
18
docker/centos/source/nova/nova-libvirt/Dockerfile
Normal file
18
docker/centos/source/nova/nova-libvirt/Dockerfile
Normal 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"]
|
1
docker/centos/source/nova/nova-libvirt/build
Symbolic link
1
docker/centos/source/nova/nova-libvirt/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
1
docker/centos/source/nova/nova-libvirt/config-external.sh
Symbolic link
1
docker/centos/source/nova/nova-libvirt/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-libvirt/config-external.sh
|
1
docker/centos/source/nova/nova-libvirt/config-internal.sh
Symbolic link
1
docker/centos/source/nova/nova-libvirt/config-internal.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-libvirt/config-internal.sh
|
1
docker/centos/source/nova/nova-libvirt/start.sh
Symbolic link
1
docker/centos/source/nova/nova-libvirt/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-libvirt/start.sh
|
10
docker/centos/source/nova/nova-network/Dockerfile
Normal file
10
docker/centos/source/nova/nova-network/Dockerfile
Normal 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"]
|
1
docker/centos/source/nova/nova-network/build
Symbolic link
1
docker/centos/source/nova/nova-network/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
1
docker/centos/source/nova/nova-network/config-external.sh
Symbolic link
1
docker/centos/source/nova/nova-network/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-network/config-external.sh
|
1
docker/centos/source/nova/nova-network/config-internal.sh
Symbolic link
1
docker/centos/source/nova/nova-network/config-internal.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-network/config-internal.sh
|
1
docker/centos/source/nova/nova-network/config-nova-network.sh
Symbolic link
1
docker/centos/source/nova/nova-network/config-nova-network.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-network/config-nova-network.sh
|
1
docker/centos/source/nova/nova-network/start.sh
Symbolic link
1
docker/centos/source/nova/nova-network/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-network/start.sh
|
13
docker/centos/source/nova/nova-novncproxy/Dockerfile
Normal file
13
docker/centos/source/nova/nova-novncproxy/Dockerfile
Normal 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"]
|
1
docker/centos/source/nova/nova-novncproxy/build
Symbolic link
1
docker/centos/source/nova/nova-novncproxy/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
1
docker/centos/source/nova/nova-novncproxy/config-external.sh
Symbolic link
1
docker/centos/source/nova/nova-novncproxy/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-novncproxy/config-external.sh
|
1
docker/centos/source/nova/nova-novncproxy/config-internal.sh
Symbolic link
1
docker/centos/source/nova/nova-novncproxy/config-internal.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-novncproxy/config-internal.sh
|
1
docker/centos/source/nova/nova-novncproxy/start.sh
Symbolic link
1
docker/centos/source/nova/nova-novncproxy/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-novncproxy/start.sh
|
8
docker/centos/source/nova/nova-scheduler/Dockerfile
Normal file
8
docker/centos/source/nova/nova-scheduler/Dockerfile
Normal 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"]
|
1
docker/centos/source/nova/nova-scheduler/build
Symbolic link
1
docker/centos/source/nova/nova-scheduler/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
1
docker/centos/source/nova/nova-scheduler/config-external.sh
Symbolic link
1
docker/centos/source/nova/nova-scheduler/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-scheduler/config-external.sh
|
1
docker/centos/source/nova/nova-scheduler/config-internal.sh
Symbolic link
1
docker/centos/source/nova/nova-scheduler/config-internal.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-scheduler/config-internal.sh
|
1
docker/centos/source/nova/nova-scheduler/start.sh
Symbolic link
1
docker/centos/source/nova/nova-scheduler/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/nova/nova-scheduler/start.sh
|
Loading…
Reference in New Issue
Block a user