Docker playground
Mount the GlusterFS Volume and expose it as Samba Share
docker run --name glustersamba --cap-add SYS_ADMIN --device /dev/fuse --rm -e glusterip=Gluster-Server-IP -e glusterhost=Gluster-Server-FriendlyName -e glustervolume=Gluster-Volume-Name -p 138:138/udp -p 139:139 -p 445:445 -p 445:445/udp -it khurramaziz/gluster
- where Gluster-Server-IP, Gluster-Server-FriendlyName and Gluster-Volume-Name are as per your Gluster environment
- http://weblogs.com.pk/khurram/archive/2016/07/14/glusterfs.aspx
- http://weblogs.com.pk/khurram/archive/2016/07/19/glusterfs-volume-as-samba-share.aspx
Its built with intention for Raspberry PI based Gluster environment; at the time of build, out of the box Gluster 3.5.2 is available for PI using its package repository; however 3.5.7 is also available at https://download.gluster.org/pub/gluster/glusterfs/3.7/3.7.3/Raspbian/jessie/
http://weblogs.com.pk/khurram/archive/2016/07/20/visual-c-for-linux-development.aspx
http://weblogs.com.pk/khurram/archive/2016/07/04/dockerizing-mongo-and-express.aspx
http://weblogs.com.pk/khurram/archive/2016/07/11/docker-compose.aspx
Assign Virtual / Floating IP with UCARP to your Docker Host for High Availability.
docker run --rm --cap-add=NET_ADMIN --net=host -it khurramaziz/ucarp 10.0.75.20 foobar
- where 10.0.75.20 is the floating / virtual ip and foobar is the password
https://debian-administration.org/article/678/Virtual_IP_addresses_with_ucarp_for_high-availability
Scripts are taken from