2016-08-05 16:00:44 +00:00
|
|
|
FROM {{ namespace }}/{{ image_prefix }}barbican-base:{{ tag }}
|
|
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
|
2016-09-07 18:15:01 +01:00
|
|
|
{% block barbican_api_header %}{% endblock %}
|
|
|
|
|
2016-08-05 16:00:44 +00:00
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
|
|
|
|
{% if install_type == 'binary' %}
|
|
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
{% set barbican_api_packages = ['openstack-barbican-api'] %}
|
|
|
|
{% elif base_distro in ['ubuntu'] %}
|
2016-10-11 09:50:55 +08:00
|
|
|
{% set barbican_api_packages = [
|
|
|
|
'uwsgi-plugin-python',
|
|
|
|
'barbican-api'
|
|
|
|
] %}
|
2016-08-05 16:00:44 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{{ macros.install_packages(barbican_api_packages | customizable("packages")) }}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
COPY extend_start.sh /usr/local/bin/kolla_barbican_extend_start
|
|
|
|
|
|
|
|
RUN chmod 755 /usr/local/bin/kolla_barbican_extend_start
|
|
|
|
|
|
|
|
{% block barbican_api_footer %}{% endblock %}
|
|
|
|
{% block footer %}{% endblock %}
|
|
|
|
|
|
|
|
USER barbican
|