20801afaea
Currently Kolla only offers source installs for OpenStack projects. The novnc and spice images have been consistent with this resulting in tarballs being pulled from github. The binary/source distinction should be removed for these images. Change-Id: Ibdf593a2a164e39bba3ea2a0e6333f2de876c2a0
51 lines
1.2 KiB
Django/Jinja
51 lines
1.2 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}nova-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% block nova_spicehtml5proxy_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
|
|
|
{% set nova_spicehtml5proxy_packages = [
|
|
'openstack-nova-spicehtml5proxy',
|
|
'spice-html5',
|
|
'numpy'
|
|
] %}
|
|
|
|
{% elif base_distro in ['ubuntu'] %}
|
|
|
|
{% set nova_spicehtml5proxy_packages = [
|
|
'nova-spiceproxy',
|
|
'websockify'
|
|
] %}
|
|
|
|
{% endif %}
|
|
|
|
{% elif install_type == 'source' %}
|
|
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
|
|
|
{% set nova_spicehtml5proxy_packages = [
|
|
'spice-html5',
|
|
'numpy'
|
|
] %}
|
|
|
|
{% elif base_distro in ['ubuntu'] %}
|
|
|
|
{% set nova_spicehtml5proxy_packages = [
|
|
'spice-html5',
|
|
'websockify'
|
|
] %}
|
|
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{{ macros.install_packages(nova_spicehtml5proxy_packages | customizable("packages")) }}
|
|
|
|
{% block nova_spicehtml5proxy_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
{{ include_footer }}
|
|
|
|
USER nova
|