kolla/docker/manila/manila-share/Dockerfile.j2
Rafal Wadolowski 771584cbb5 Add sqlite package to manila-share
The docker image was built without sqlite package, which is required for
nfs backend. Without this package manila-share fails to start.

Change-Id: I2f7d8c283393ca947a1d51c6e3cd20e888fbc3e4
Closes-Bug: #1824511
2019-05-07 14:12:05 +00:00

49 lines
1.2 KiB
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}manila-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block manila_share_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
{% if base_package_type == 'rpm' %}
{% set manila_share_packages = [
'openstack-manila-share',
'ceph-common',
'sqlite'
] %}
{% elif base_package_type == 'deb' %}
{% set manila_share_packages = [
'manila-share',
'ceph-common',
'sqlite3'
] %}
{% endif %}
{{ macros.install_packages(manila_share_packages | customizable("packages")) }}
{% elif install_type == 'source' %}
{% if base_package_type == 'rpm' %}
{% set manila_share_packages = [
'ceph-common',
'sqlite'
] %}
{% elif base_package_type == 'deb' %}
{% set manila_share_packages = [
'ceph-common',
'sqlite3'
] %}
{% endif %}
{{ macros.install_packages(manila_share_packages | customizable("packages")) }}
{% endif %}
{% block manila_share_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER manila