52 lines
1.7 KiB
Django/Jinja
52 lines
1.7 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}keystone-base:{{ tag }}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
|
|
{% block keystone_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
COPY keystone_bootstrap.sh /usr/local/bin/kolla_keystone_bootstrap
|
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|
RUN chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_keystone_bootstrap
|
|
|
|
{% if install_type == 'binary' %}
|
|
# TODO: oraclelinux fails to install these packages. Should be added when this is fixed.
|
|
{% if base_distro in ['centos', 'rhel'] %}
|
|
{% set keystone_packages = [
|
|
'mod_auth_gssapi',
|
|
'python-requests-kerberos',
|
|
] %}
|
|
{% elif base_distro in ['debian', 'ubuntu'] %}
|
|
{% set keystone_packages = [
|
|
'libapache2-mod-auth-gssapi',
|
|
'python-requests-kerberos',
|
|
] %}
|
|
{% endif %}
|
|
{{ macros.install_packages(keystone_packages | customizable("packages")) }}
|
|
{% elif install_type == 'source' %}
|
|
{% if base_distro in ['centos', 'rhel'] %}
|
|
{% set keystone_packages = [
|
|
'mod_auth_gssapi',
|
|
] %}
|
|
{% elif base_distro in ['debian', 'ubuntu'] %}
|
|
{% set keystone_packages = [
|
|
'libapache2-mod-auth-gssapi',
|
|
] %}
|
|
{% endif %}
|
|
{{ macros.install_packages(keystone_packages | customizable("packages")) }}
|
|
ADD plugins-archive /
|
|
|
|
{% set keystone_plugins_pip_packages = [
|
|
'/plugins/*',
|
|
'requests-kerberos',
|
|
] %}
|
|
|
|
RUN if [ "$(ls /plugins)" ]; then \
|
|
{{ macros.install_pip(keystone_plugins_pip_packages) }}; \
|
|
fi
|
|
|
|
{% endif %}
|
|
|
|
{% block keystone_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|