bedca5b35e
* install openssh client in keystone-fernet container * install rsync in keystone-ssh container * fix syntax issue in ssh configuration * copy ssh configuration into keystone-fernet container * copy id_rsa.pub into keystone-ssh container * copy id_rsa into keystone-fernet container * use full path to ssh binary in used scripts * add missing newlines at EOF * when using type source set /var/lib/keystone as home directory for the user keystone Co-Authored-By: Jeffrey Zhang <jeffrey.zhang@99cloud.net> Change-Id: Id6b41030056a69f6516a054beb2fc0e08226e876 Closes-bug: #1623013
31 lines
839 B
Django/Jinja
31 lines
839 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}keystone-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% block keystone_ssh_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
{% set keystone_ssh_packages = [
|
|
'openssh-server',
|
|
'rsync'
|
|
] %}
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
{% set keystone_ssh_packages = [
|
|
'openssh-server',
|
|
'rsync'
|
|
] %}
|
|
|
|
RUN mkdir -p /var/run/sshd \
|
|
&& chmod 0755 /var/run/sshd
|
|
|
|
{% endif %}
|
|
{{ macros.install_packages(keystone_ssh_packages | customizable("packages")) }}
|
|
|
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
|
|
|
{% block keystone_ssh_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
{{ include_footer }}
|