summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CentOS/Dockerfile10
-rw-r--r--CentOS/cccp.yml17
-rw-r--r--README.md2
3 files changed, 19 insertions, 10 deletions
diff --git a/CentOS/Dockerfile b/CentOS/Dockerfile
index db778e0..b46412f 100644
--- a/CentOS/Dockerfile
+++ b/CentOS/Dockerfile
@@ -15,17 +15,10 @@ rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*;\
rm -f /lib/systemd/system/anaconda.target.wants/*;
-RUN yum --setopt=tsflags=nodocs -y install wget nfs-utils attr iputils iproute
-
-RUN wget http://download.gluster.org/pub/gluster/glusterfs/LATEST/EPEL.repo/glusterfs-epel.repo -O /etc/yum.repos.d/glusterfs-epel.repo
-
-RUN wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm; rpm -ivh epel-release-latest-7.noarch.rpm; rm epel-release-latest-7.noarch.rpm;
-
+RUN yum --setopt=tsflags=nodocs -y install wget nfs-utils attr iputils iproute centos-release-gluster
RUN yum --setopt=tsflags=nodocs -y install openssh-server openssh-clients ntp rsync tar cronie sudo xfsprogs glusterfs glusterfs-server glusterfs-geo-replication;yum clean all;
-RUN echo 'root:password' | chpasswd
-VOLUME [ "/sys/fs/cgroup" ]
RUN sed -i '/Defaults requiretty/c\#Defaults requiretty' /etc/sudoers
# Changing the port of sshd to avoid conflicting with host sshd
@@ -62,4 +55,3 @@ RUN systemctl enable gluster-setup.service
EXPOSE 2222 111 245 443 24007 2049 8080 6010 6011 6012 38465 38466 38468 38469 49152 49153 49154 49156 49157 49158 49159 49160 49161 49162
CMD ["/usr/sbin/init"]
-
diff --git a/CentOS/cccp.yml b/CentOS/cccp.yml
new file mode 100644
index 0000000..40d3e85
--- /dev/null
+++ b/CentOS/cccp.yml
@@ -0,0 +1,17 @@
+#place this file in your nulecule dir and call it cccp.yml
+job-id: storagesig-gluster-centos
+
+#the following are optional, can be left blank
+#defaults, where applicable are filled in
+#nulecule-file : nulecule
+#test-skip : True
+#test-script :
+#build-script :
+#delivery-script :
+#docker-index : True
+#custom-delivery : False
+#local-delivery : True
+#Upstreams :
+# - ref :
+# url :
+#desired-tag : null
diff --git a/README.md b/README.md
index d61fcb1..d6f71a8 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-This repo containers dockerfiles (CentOS, Fedora, Red Hat) for GlusterFS containers.
+This repo contains dockerfiles (CentOS, Fedora, Red Hat) for GlusterFS containers.
Although Setting up a glusterfs environment is a pretty simple and straight forward procedure, Gluster community do maintain docker images for gluster both in Fedora and CentOS in the docker hub for the ease of users. This blog is intented to walk the user through the steps of running GlusterFS with the help of docker.
The community maintains docker images GlusterFS release 3.6 in both Fedora-21 and CentOS-7. The following are the steps to build the GlusterFS docker images that we maintain: