5cd30d4914
Closes-bug: #1616387 Change-Id: Id97f88b9baa3d48d33ce120962450a374282d044
31 lines
993 B
Django/Jinja
31 lines
993 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}keystone-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% block keystone_fernet_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
|
{% set keystone_fernet_packages = [
|
|
'cronie',
|
|
'openssh-clients',
|
|
'rsync'
|
|
] %}
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
{% set keystone_fernet_packages = [
|
|
'cron',
|
|
'openssh-client',
|
|
'rsync'
|
|
] %}
|
|
{% endif %}
|
|
{{ macros.install_packages(keystone_fernet_packages | customizable("packages")) }}
|
|
|
|
COPY fetch_fernet_tokens.py /usr/bin/
|
|
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 /usr/bin/fetch_fernet_tokens.py
|
|
|
|
{% block keystone_fernet_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
{{ include_footer }}
|