diff options
| author | Carlos Cesario <carloscesario@gmail.com> | 2016-07-08 13:34:04 -0300 |
|---|---|---|
| committer | Carlos Cesario <carloscesario@gmail.com> | 2016-07-11 09:07:21 -0300 |
| commit | 115c55e1fe55598704ddab8e3ce251d1f7d78ffc (patch) | |
| tree | 81d96f4f6a4f4a1a3ea6db33fccda864010e8d37 /docker | |
| parent | 0f9534bc2339b20544abff33da87ec809e66e1a1 (diff) | |
| download | kolla-115c55e1fe55598704ddab8e3ce251d1f7d78ffc.tar.gz kolla-115c55e1fe55598704ddab8e3ce251d1f7d78ffc.zip | |
Add multipathing support to docker container
Due some cinder drivers need multipathing support like this one
http://docs.openstack.org/mitaka/config-reference/block-storage/drivers/ibm-storwize-svc-driver.html
This PS will allow to run these additional drivers when using Kolla.
Implements: blueprint multipath-support
Change-Id: Id6cf29f984c92773bbfc2f95daea573a74701648
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/multipathd/Dockerfile.j2 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docker/multipathd/Dockerfile.j2 b/docker/multipathd/Dockerfile.j2 new file mode 100644 index 000000000..9c91f91f3 --- /dev/null +++ b/docker/multipathd/Dockerfile.j2 @@ -0,0 +1,18 @@ +FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }} +MAINTAINER {{ maintainer }} + +{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} + +RUN yum -y install \ + device-mapper-multipath \ + && yum clean all + +{% elif base_distro in ['ubuntu', 'debian'] %} + +RUN apt-get -y install --no-install-recommends \ + multipath-tools \ + && apt-get clean + +{% endif %} + +{{ include_footer }} |
