[CentOS-devel] Dockerfiles for CentOS containers with GlusterFS.

Fri Feb 16 20:04:15 UTC 2018
Javier Romero <xavinux at gmail.com>

Dear all,

I've built GlusterFS 3.12 image from Dockerfile and changed Gluster
version and vendor, a pull request has been sent on Github.

# docker images
REPOSITORY                TAG                 IMAGE ID
CREATED             SIZE
dockerfile-gluster-3.12   latest              4647c9d71843        53
minutes ago      371.2 MB
docker.io/centos          7                   ff426288ea90        5
weeks ago         207.2 MB

# docker ps -a
CONTAINER ID        IMAGE                     COMMAND
CREATED             STATUS              PORTS               NAMES
9afa8c0ab468        dockerfile-gluster-3.12   "/usr/sbin/init"    38
minutes ago      Up 38 minutes                           small_shannon

# docker exec -it 9afa8c0ab468 bash
# glusterd -V
glusterfs 3.12.5



There was just a Dockerfile on the gluster-3.10 branch for building
GlusterFS 3.10. Have updated that Dockerfile and sent a pull request
on Github.

# docker images
REPOSITORY                TAG                 IMAGE ID
CREATED             SIZE
dockerfile-gluster-3.10   latest              fbedfea074f6        36
minutes ago      435.5 MB
docker.io/centos          7                   ff426288ea90        5
weeks ago         207.2 MB

# docker ps -a
CONTAINER ID        IMAGE                     COMMAND
CREATED             STATUS              PORTS               NAMES
0269de7f42bd        dockerfile-gluster-3.10   "/usr/sbin/init"    7
seconds ago       Up 6 seconds                            high_jang

# docker exec -it 0269de7f42bd sh
sh-4.2# glusterd -V
glusterfs 3.10.10



Have created a new Dockerfile for image creation to run containers on
CentOS 7 with GlusterFS 3.13 already installed. Also sent a pull
request on Github to merge a new branch named gluster-3.13 with this
new Dockerfile included. Tested on Centos 7 release 7.4.1708 (Core)
with kernel 3.10.0-693.17.1.el7.x86_64 and works ok:

# docker images
REPOSITORY                TAG                 IMAGE ID
CREATED             SIZE
dockerfile-gluster-3.13   latest              07931ac54c87
About an hour ago   371.9 MB
docker.io/centos          7                   ff426288ea90        5
weeks ago         207.2 MB


# docker ps -a
CONTAINER ID        IMAGE                     COMMAND
CREATED             STATUS              PORTS               NAMES
4e164d71256f        dockerfile-gluster-3.13   "/usr/sbin/init"
About an hour ago   Up About an hour
backstabbing_babbage


# docker exec -it 4e164d71256f sh
sh-4.2# glusterd -V
glusterfs 3.13.2


Regards,



Javier Romero