summaryrefslogtreecommitdiffstats
path: root/CentOS/Dockerfile
diff options
context:
space:
mode:
authorMohamed Ashiq Liyazudeen <mliyazud@redhat.com>2016-06-08 15:14:26 +0530
committerMohamed Ashiq Liyazudeen <mliyazud@redhat.com>2016-06-08 15:14:26 +0530
commit49134a572d8a9371ca0b1864358cadc1c1de1248 (patch)
treeaf6fb99cac175cad2a3126904693707fdfa749a8 /CentOS/Dockerfile
parenta37aa2f59a01c62111d3689f2695c607dee332af (diff)
downloadgluster-49134a572d8a9371ca0b1864358cadc1c1de1248.tar.gz
gluster-49134a572d8a9371ca0b1864358cadc1c1de1248.tar.bz2
gluster-49134a572d8a9371ca0b1864358cadc1c1de1248.tar.xz
gluster-49134a572d8a9371ca0b1864358cadc1c1de1248.zip
Updating Centos for lvcreate
Signed-off-by: Mohamed Ashiq Liyazudeen <mliyazud@redhat.com>
Diffstat (limited to 'CentOS/Dockerfile')
-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