kolla/docker/nova/nova-conductor/Dockerfile.j2
Doug Szumski b087f058c9 Support DB bootstrap from Nova Conductor container
Currently the Nova API container does all the database bootstrapping
for Nova. In a deployment with more than one active cell, it makes
more sense for the conductors to bootstrap their own databases, rather
than have the Nova API container do it. This change adds support for
that. Until the support is actually used, we leave Nova API as-is.

Partially Implements: blueprint support-nova-cells
Change-Id: Id3a78b6838a3aae04f5dd5bd6ec928359297cfd3
2019-08-20 17:22:40 +01:00

34 lines
867 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}nova-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block nova_conductor_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
{% if base_package_type == 'rpm' %}
{% set nova_conductor_packages = [
'openstack-nova-conductor'
] %}
{% elif base_package_type == 'deb' %}
{% set nova_conductor_packages = [
'nova-conductor'
] %}
{% endif %}
{{ macros.install_packages(nova_conductor_packages | customizable("packages")) }}
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_nova_extend_start
RUN chmod 755 /usr/local/bin/kolla_nova_extend_start
{% block nova_conductor_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER nova