Add Dockerfile template for nova

Change-Id: I11fd26950f76be2200730e333e365ef74dfd5747
Partially-Implements: blueprint dockerfile-template
This commit is contained in:
Sam Yaple 2015-08-16 03:30:08 +00:00
parent a760549e78
commit b89575b419
25 changed files with 235 additions and 0 deletions

View File

@ -0,0 +1,16 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-nova-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum -y install openstack-nova-api \
&& yum clean all
{% endif %}
{% endif %}
COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

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

View File

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

View File

@ -0,0 +1,52 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum -y install \
openstack-nova-common \
python-keystoneclient \
python-cinderclient \
python-nova \
bridge-utils \
&& yum clean all
{% elif base_distro in ['ubuntu', 'debian'] %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% endif %}
{% elif install_type == 'source' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum -y install \
bridge-utils \
&& yum clean all
{% elif base_distro in ['ubuntu', 'debian'] %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% endif %}
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 -r /nova/etc/nova/* /etc/nova/ \
&& chown -R nova: /etc/nova /var/log/nova \
&& rm -rf /root/.cache
{% endif %}

View File

@ -0,0 +1,27 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-nova-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum -y install openstack-nova-compute \
openvswitch \
sysfsutils \
&& yum clean all
{% endif %}
{% elif install_type == 'source' %}
RUN yum -y install \
sysfsutils \
libvirt-python \
&& yum clean all
{% endif %}
COPY start.sh /
COPY config-external.sh /opt/kolla/
VOLUME [ "/sys/fs/cgroup" ]
CMD ["/start.sh"]

View File

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

View File

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

View File

@ -0,0 +1,17 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-nova-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum -y install \
openstack-nova-conductor \
&& yum clean all
{% endif %}
{% endif %}
COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

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

View File

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

View File

@ -0,0 +1,16 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-nova-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum -y install openstack-nova-console \
&& yum clean all
{% endif %}
{% endif %}
COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

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

View File

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

View File

@ -0,0 +1,22 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-nova-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
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
{% endif %}
COPY start.sh /
COPY config-external.sh /opt/kolla/
VOLUME [ "/sys/fs/cgroup" ]
CMD ["/start.sh"]

View File

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

View File

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

View File

@ -0,0 +1,26 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-nova-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum -y install \
openstack-nova-network \
bridge-utils \
initscripts \
&& yum clean all
{% endif %}
{% elif install_type == 'source' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum -y install initscripts \
&& yum clean all
{% endif %}
{% endif %}
COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

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

View File

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

View File

@ -0,0 +1,27 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-nova-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum -y install \
novnc \
openstack-nova-novncproxy \
&& yum clean all
{% endif %}
{% elif install_type == 'source' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum -y install \
https://rdoproject.org/repos/openstack-kilo/rdo-release-kilo.rpm \
novnc \
&& yum clean all
{% endif %}
{% endif %}
COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

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

View File

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

View File

@ -0,0 +1,16 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-nova-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum -y install openstack-nova-scheduler \
&& yum clean all
{% endif %}
{% endif %}
COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

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

View File

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