summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHumble Devassy Chirammal <humble.devassy@gmail.com>2016-10-27 18:00:52 +0530
committerGitHub <noreply@github.com>2016-10-27 18:00:52 +0530
commit3dfe3bf5b45018fd82d2cbc586cb39e291533157 (patch)
tree7c56f24980b83e0f3a5c3ab85a1a18a3a345e80d
parent15f5a214946210e5c0ae88fae5108d397ed36f85 (diff)
parent49134a572d8a9371ca0b1864358cadc1c1de1248 (diff)
downloadgluster-3dfe3bf5b45018fd82d2cbc586cb39e291533157.tar.gz
gluster-3dfe3bf5b45018fd82d2cbc586cb39e291533157.tar.bz2
gluster-3dfe3bf5b45018fd82d2cbc586cb39e291533157.tar.xz
gluster-3dfe3bf5b45018fd82d2cbc586cb39e291533157.zip
Merge pull request #13 from MohamedAshiqrh/lvcreate
Updating Centos for lvcreate support
-rw-r--r--CentOS/Dockerfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/CentOS/Dockerfile b/CentOS/Dockerfile
index 0a15671..b46412f 100644
--- a/CentOS/Dockerfile
+++ b/CentOS/Dockerfile
@@ -1,6 +1,6 @@
FROM centos:latest
-MAINTAINER Humble Chirammal hchiramm@redhat.com
+MAINTAINER Humble Chirammal hchiramm@redhat.com Mohamed Ashiq Liyazudeen mliyazud@redhat.com
ENV container docker
@@ -30,6 +30,11 @@ cp -r /etc/glusterfs/* /etc/glusterfs_bkp;\
cp -r /var/lib/glusterd/* /var/lib/glusterd_bkp;\
cp -r /var/log/glusterfs/* /var/log/glusterfs_bkp;
+# Configure LVM to create LVs and snapshots
+RUN sed -i.save -e "s#udev_sync = 1#udev_sync = 0#" \
+ -e "s#udev_rules = 1#udev_rules = 0#" \
+ -e "s#use_lvmetad = 1#use_lvmetad = 0#" /etc/lvm/lvm.conf
+
# Adding script to move the glusterfs config file to location
ADD gluster-setup.service /etc/systemd/system/gluster-setup.service
RUN chmod 644 /etc/systemd/system/gluster-setup.service