summaryrefslogtreecommitdiffstats
path: root/CentOS/Dockerfile
diff options
context:
space:
mode:
authorMohamed Ashiq Liyazudeen <mliyazud@redhat.com>2017-05-08 20:38:13 +0530
committerMohamed Ashiq Liyazudeen <mliyazud@redhat.com>2017-05-08 20:59:05 +0530
commite63a97ed1b464975c9df07ea07dec3b136fa034a (patch)
tree90d8ad1d5caa732a83b521439b0d6b0bf3c9ba81 /CentOS/Dockerfile
parentbd3aed1b4a11ed8816c6c556847c2fbba600837d (diff)
downloadgluster-e63a97ed1b464975c9df07ea07dec3b136fa034a.tar.gz
gluster-e63a97ed1b464975c9df07ea07dec3b136fa034a.tar.bz2
gluster-e63a97ed1b464975c9df07ea07dec3b136fa034a.tar.xz
gluster-e63a97ed1b464975c9df07ea07dec3b136fa034a.zip
Cleanup for the Unit tests
Signed-off-by: Mohamed Ashiq Liyazudeen <mliyazud@redhat.com>
Diffstat (limited to 'CentOS/Dockerfile')
-rw-r--r--CentOS/Dockerfile18
1 files changed, 13 insertions, 5 deletions
diff --git a/CentOS/Dockerfile b/CentOS/Dockerfile
index 7c0d448..e77a714 100644
--- a/CentOS/Dockerfile
+++ b/CentOS/Dockerfile
@@ -1,10 +1,20 @@
-FROM centos:latest
+FROM centos:7
MAINTAINER Humble Chirammal hchiramm@redhat.com Mohamed Ashiq Liyazudeen mliyazud@redhat.com
ENV container docker
-RUN yum --setopt=tsflags=nodocs -y update; yum clean all;
+LABEL architecture="x86_64" \
+ name="gluster/gluster-centos" \
+ version="3.10" \
+ vendor="Red Hat, Inc" \
+ summary="This image has a running glusterfs service ( CentOS 7 + Gluster 3.10)" \
+ io.k8s.display-name="Gluster 3.10 based on CentOS 7" \
+ io.k8s.description="Gluster Image is based on CentOS Image which is a scalable network filesystem. Using common off-the-shelf hardware, you can create large, distributed storage solutions for media streaming, data analysis, and other data- and bandwidth-intensive tasks." \
+ description="Gluster Image is based on CentOS Image which is a scalable network filesystem. Using common off-the-shelf hardware, you can create large, distributed storage solutions for media streaming, data analysis, and other data- and bandwidth-intensive tasks." \
+ io.openshift.tags="gluster,glusterfs,glusterfs-centos"
+
+RUN yum --setopt=tsflags=nodocs -y update; yum install centos-release-gluster; yum clean all;
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
rm -f /lib/systemd/system/multi-user.target.wants/*;\
@@ -15,9 +25,7 @@ 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 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 yum --setopt=tsflags=nodocs -y install wget nfs-utils attr iputils iproute openssh-server openssh-clients ntp rsync tar cronie sudo xfsprogs glusterfs glusterfs-server glusterfs-geo-replication;yum clean all;
RUN sed -i '/Defaults requiretty/c\#Defaults requiretty' /etc/sudoers