Giter VIP home page Giter VIP logo

docker-volume-beegfs's Introduction

docker-volume-beegfs

Docker Volume plugin to create persistent volumes in a BeeGFS cluster.

Preconditions

  • BeeGFS cluster has to be setup and running
  • beegfs-client service needs to be running on the Docker host

Installation

A pre-built binary as well as rpm and deb packages are available from the releases page.

RedHat/CentOS 7

An rpm can be built with:

make rpm

Then install and start the service:

yum localinstall docker-volume-beegfs-$VERSION.rpm
systemctl start docker-volume-beegfs

Debian 8

Debian packages are currently built on a RedHat system, but the Makefile describes which packages to install on Debian when building from scratch. Building the actual package can be done on a Debian system without Makefile modifications:

make deb

Now you can install and start the service:

dpkg -i docker-volume-beegfs_$VERSION.deb
systemctl start docker-volume-beegfs

From source code

The plugin uses govendor to manage dependencies.

go get -u github.com/kardianos/govendor

Restore dependencies:

govendor sync

Build the plugin:

go build

Usage

First create a volume:

docker volume create -d beegfs --name postgres-portroach

Then use the volume by passing the name (postgres-1):

docker run -ti -v postgres-portroach:/var/lib/postgresql/data --volume-driver=beegfs -p 5432:5432 -e POSTGRES_PASSWORD=postgres postgres

Inspect the volume:

docker volume inspect postgres-portroach

Remove the volume (note that this will not remove the actual data):

docker volume rm postgres-portroach

Non-default mount points

By default BeeGFS uses /mnt/beegfs as the mount point (as configured in beegfs-mounts.conf), and this plugin does too. For non-standard mount points you can specify an alternate root when creating a new volume:

docker volume create -d beegfs --name b3 -o root=/stor/b3

Other options are currently silently ignored.

Roadmap

  • No outstanding features/requests.

License

MIT, please see the LICENSE file.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

docker-volume-beegfs's People

Contributors

jasperla avatar reinerj avatar valichek avatar

Watchers

Serge Medvedev avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.