marcelo-ochoa / docker-volume-plugins

Managed docker volume plugins
Eclipse Public License 2.0
88 stars 17 forks source link

One plugin for each GlusterFS major version #6

Open gregopenit opened 3 years ago

gregopenit commented 3 years ago

Is your feature request related to a problem? Please describe. The current tag latest provides only plugin for glusterfs 7, which is the latest glusterfs-client version available in Ubuntu. It could be interesting to have a build for each glusterfs major version, in order to match the glusterfs cluster version.

Despite the Op-Version mechanism, the documentation still recommends to keep the same version between clients and servers. "It is recommended to have the same client and server, major versions running eventually" - Generic Upgrade procedure

Describe the solution you'd like Specifying the glusterfs-client package version in the Dockerfile and creating 4 different builds (at least versions 6, 7, 8, 9). On Ubuntu, Glusterfs community PPA can be used: https://launchpad.net/~gluster

For instance with version 8:

RUN apt update && apt-get install -y software-properties-common && \ apt install -yq software-properties-common && \ add-apt-repository -y ppa:gluster/glusterfs-8 && \ apt install -y glusterfs-client curl rsyslog tini && \ apt clean && rm -rf /var/lib/apt/lists/ && \ rm -rf "/tmp/" "/root/.cache" /var/log/lastlog && \ mkdir -p /var/lib/glusterd /etc/glusterfs && \ touch /etc/glusterfs/logger.conf