2015-09-17 09:35:33 -07:00
|
|
|
FROM {{ namespace }}/{{ image_prefix }}neutron-base:{{ tag }}
|
2015-11-23 12:38:58 +05:30
|
|
|
MAINTAINER {{ maintainer }}
|
2015-08-13 04:24:42 +02:00
|
|
|
|
2016-09-07 18:15:01 +01:00
|
|
|
{% block neutron_server_header %}{% endblock %}
|
|
|
|
|
2016-08-03 20:52:37 +02:00
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
|
2016-05-10 20:26:58 +00:00
|
|
|
{% if install_type == 'binary' %}
|
|
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
|
2016-08-03 20:52:37 +02:00
|
|
|
{% set neutron_server_packages = [
|
2016-09-19 14:40:43 +08:00
|
|
|
'openstack-neutron-lbaas',
|
|
|
|
'openstack-neutron-vpnaas',
|
2016-08-03 20:52:37 +02:00
|
|
|
] %}
|
2016-05-10 20:26:58 +00:00
|
|
|
|
|
|
|
{% elif base_distro in ['ubuntu'] %}
|
|
|
|
|
2016-08-03 20:52:37 +02:00
|
|
|
{% set neutron_server_packages = [
|
|
|
|
'neutron-lbaasv2-agent',
|
2016-09-19 14:40:43 +08:00
|
|
|
'python-neutron-lbaas',
|
|
|
|
'python-neutron-vpnaas',
|
2016-08-03 20:52:37 +02:00
|
|
|
] %}
|
|
|
|
|
2016-05-10 20:26:58 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
2016-08-03 20:52:37 +02:00
|
|
|
{{ macros.install_packages(neutron_server_packages | customizable("packages")) }}
|
|
|
|
|
2015-11-20 11:47:46 +00:00
|
|
|
ADD plugins-archive /
|
2016-02-24 11:29:09 +01:00
|
|
|
COPY extend_start.sh /usr/local/bin/kolla_neutron_extend_start
|
|
|
|
RUN chmod 755 /usr/local/bin/kolla_neutron_extend_start \
|
2016-01-08 14:05:37 +01:00
|
|
|
&& if [ "$(ls /plugins)" ]; then \
|
2015-12-27 02:41:30 +00:00
|
|
|
pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /plugins/*; \
|
2015-11-20 11:47:46 +00:00
|
|
|
fi
|
2015-08-28 13:17:41 +03:00
|
|
|
|
2016-08-03 20:52:37 +02:00
|
|
|
{% block neutron_server_footer %}{% endblock %}
|
|
|
|
{% block footer %}{% endblock %}
|
2015-08-28 13:17:41 +03:00
|
|
|
{{ include_footer }}
|
2016-01-26 19:50:43 +00:00
|
|
|
|
|
|
|
USER neutron
|