chrisbecke / glusterfs-volume Goto Github PK
View Code? Open in Web Editor NEWDocker volume plugin on glusterfs
Docker volume plugin on glusterfs
Hi,
Thanks for putting the version up in the docker registry.
To install i did the following
sudo docker plugin install --alias gluster-vol1 chrisbecke/glusterfs-volume GFS_VOLUME=gluster-vol1 GFS_SERVERS=docker01.mydomain.com,docker02.mydomain.com,mydomain.alexbal.com
I tested by changing a pre-existing stack to use this driver. This is the stack for reference. Its my most complex one and the one where it doesn't matter if the data gets lost :-) i left old mounts in but commented out for reference. to be clear i didn't copy data over from old location to new location
version: "3"
services:
up_influxdb:
# container_name: up_influxdb
# restart: unless-stopped
image: influxdb:1.8
ports:
- '8086:8086'
volumes:
# - /mnt/iscsi/docker/up_influxdb:/var/lib/influxdb
- data:/var/lib/influxdb
environment:
- INFLUXDB_DB=unifi
- INFLUXDB_ADMIN_USER=unifi
- INFLUXDB_ADMIN_PASSWORD=unifi
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
up_grafana:
# container_name: up_grafana
image: grafana/grafana
# restart: unless-stopped
ports:
- '3000:3000'
volumes:
# - /mnt/iscsi/docker/up_grafana:/var/lib/grafana
- data:/var/lib/grafana
- /mnt/iscsi/docker/gf_provsioning:/etc/grafana/provisioning
depends_on:
- influxdb
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_INSTALL_PLUGINS=grafana-clock-panel,natel-discrete-panel,grafana-piechart-panel
- UP_INFLUXDB_URL=http://{{.Node.Hostname}}.mydomain.com:8086
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
un-poller:
# container_name: up-poller
# restart: unless-stopped
image: golift/unifi-poller:latest
depends_on:
- influxdb
- grafana
environment:
- UP_UNIFI_DEFAULT_URL=https://192.168.1.1
- UP_UNIFI_DEFAULT_USER=<redacted>
- UP_UNIFI_DEFAULT_PASS=<redacted>
- UP_UNIFI_DEFAULT_SAVE_SITES=true
- UP_UNIFI_DEFAULT_SITE_0=default
- UP_INFLUXDB_URL=http://{{.Node.Hostname}}.mydomain.com:8086
volumes:
- data:/config
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
volumes:
data:
driver: gluster-vol1
tl;dr it worked - the dir didn't exist and it was created with stackname_data
the only thing i can think of that would improve this aspect is it possibly creating one of the following structures instead of munging every services data into one folder
second issue:
the driver didnt show up here, not sure why, this would give folks ability to create volumes as they see fit, if needed
but overall it seems to work, first time!
I note the base gluster/glusterfs-client is 3 years old, do you think that matters.
Also my initial reaction was the plugin container was a little large at 277MB.
Also that base container only has x64 architecture
I am happy to try and contribute and:
I have done this before, i have a variety of simple approaches to multiarch and can either do it by client side scripts on the build machine or via github actions. Let me know if you are interested.
My 'portfolio'
https://hub.docker.com/u/scyto/
The API you are using doesn't support glusterfs TLS, but even so, it would be a nice addition eventually.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.