summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CentOS/Dockerfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/CentOS/Dockerfile b/CentOS/Dockerfile
index ef5c86a..db778e0 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
@@ -37,6 +37,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