5bdf514645
Refactor installing and initial setup of httpd and mod wsgi from individual services to base image. Change-Id: I651a55a9ebe258ef403d33de010a4dfb368a4021
39 lines
1.0 KiB
Django/Jinja
39 lines
1.0 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}barbican-base:{{ tag }}
|
|
{% block labels %}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
{% endblock %}
|
|
|
|
{% block barbican_api_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_package_type == 'rpm' %}
|
|
{% set barbican_api_packages = [
|
|
'openstack-barbican-api',
|
|
'uwsgi-plugin-python3'
|
|
] %}
|
|
|
|
{{ macros.install_packages(barbican_api_packages | customizable("packages")) }}
|
|
|
|
{% elif base_package_type == 'deb' %}
|
|
{% set barbican_api_packages = [
|
|
'barbican-api',
|
|
'uwsgi-plugin-python3'
|
|
] %}
|
|
|
|
{{ macros.install_packages(barbican_api_packages | customizable("packages")) }}
|
|
|
|
{% endif %}
|
|
|
|
{% 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
|