Skip to content
Snippets Groups Projects
Commit 6d84d861 authored by Shaun Smekel's avatar Shaun Smekel
Browse files

Customizations for Tgtd

This patchset contains customization of Dockerfile of the Tgtd
container.

Change-Id: I3a9ba82026fb7f596384885360339f67dc10495c
Partially-implements: blueprint third-party-plugin-support
parent e4259f80
No related branches found
No related tags found
No related merge requests found
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
MAINTAINER {{ maintainer }} MAINTAINER {{ maintainer }}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} {% import "macros.j2" as macros with context %}
RUN yum -y install \ {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
scsi-target-utils \ {% set tgtd_packages = ['scsi-target-utils'] %}
&& yum clean all
RUN {{ macros.install_packages(tgtd_packages | customizable("packages")) }}
RUN sed -i '1 i include /var/lib/cinder/volumes/*' /etc/tgt/tgtd.conf RUN sed -i '1 i include /var/lib/cinder/volumes/*' /etc/tgt/tgtd.conf
{% elif base_distro in ['ubuntu', 'debian'] %} {% elif base_distro in ['ubuntu', 'debian'] %}
{% set tgtd_packages = ['tgt'] %}
RUN apt-get -y install --no-install-recommends \ RUN {{ macros.install_packages(tgtd_packages | customizable("packages")) }}
tgt \
&& apt-get clean
RUN sed -i '1 i include /var/lib/cinder/volumes/*' /etc/tgt/targets.conf RUN sed -i '1 i include /var/lib/cinder/volumes/*' /etc/tgt/targets.conf
{% endif %} {% endif %}
{% block tgtd_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }} {{ include_footer }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment