Kolla provides production-ready containers and deployment tools for operating OpenStack clouds
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile.j2 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
  2. LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
  3. {% block nova_libvirt_header %}{% endblock %}
  4. {% import "macros.j2" as macros with context %}
  5. {{ macros.configure_user(name='nova', groups='qemu') }}
  6. {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
  7. {% set nova_libvirt_packages = [
  8. 'ceph-common',
  9. 'cyrus-sasl-scram',
  10. 'libguestfs',
  11. 'libvirt-client',
  12. 'libvirt-daemon',
  13. 'libvirt-daemon-config-nwfilter',
  14. 'libvirt-daemon-driver-lxc',
  15. 'libvirt-daemon-driver-nwfilter',
  16. 'openvswitch',
  17. 'qemu-kvm-ev'
  18. ] %}
  19. {% elif base_distro in ['debian', 'ubuntu'] %}
  20. {% set nova_libvirt_packages = [
  21. 'ceph-common',
  22. 'ebtables',
  23. 'libvirt-clients',
  24. 'libvirt-daemon-system',
  25. 'openvswitch-switch',
  26. 'pm-utils',
  27. 'qemu',
  28. 'qemu-block-extra'
  29. ] %}
  30. {% if base_arch == "aarch64" %}
  31. {% set nova_libvirt_packages = nova_libvirt_packages + [
  32. 'qemu-efi'
  33. ] %}
  34. {% endif %}
  35. {% if base_arch != "ppc64le" %}
  36. {% set nova_libvirt_packages = nova_libvirt_packages + [
  37. 'dmidecode',
  38. 'xen-utils'
  39. ] %}
  40. {% endif %}
  41. {% if base_distro in ['debian'] %}
  42. {% set nova_libvirt_packages = nova_libvirt_packages + [
  43. 'libpam-systemd/stretch-backports',
  44. 'usermode'
  45. ] %}
  46. {% endif %}
  47. {% endif %}
  48. {{ macros.install_packages(nova_libvirt_packages | customizable("packages")) }}
  49. {% if base_distro in ['debian', 'ubuntu'] %}
  50. RUN rm -f /etc/libvirt/qemu/networks/default.xml /etc/libvirt/qemu/networks/autostart/default.xml
  51. {% endif %}
  52. COPY extend_start.sh /usr/local/bin/kolla_extend_start
  53. RUN chmod 755 /usr/local/bin/kolla_extend_start
  54. {% block nova_libvirt_footer %}{% endblock %}
  55. {% block footer %}{% endblock %}