Git Product home page Git Product logo

Comments (3)

petrus-v avatar petrus-v commented on May 20, 2024

I think this is the bunch of code you are looking for: https://github.com/anybox/buttervolume/blob/master/buttervolume/plugin.py#L14-L37

As you can reand the getconfig doctstring you can also set environment variable to your plugin container.

This should looks likes:

config file environment default description
VOLUMES_PATH BUTTERVOLUME_VOLUMES_PATH /var/lib/buttervolume/volumes/
SNAPSHOTS_PATH BUTTERVOLUME_SNAPSHOTS_PATH /var/lib/buttervolume/snapshots/
TEST_REMOTE_PATH BUTTERVOLUME_TEST_REMOTE_PATH /var/lib/buttervolume/received/ this is used for testing purpose as in production snapshots are send to the remote SNAPSHOTS_PATH
SCHEDULE BUTTERVOLUME_SCHEDULE /etc/buttervolume/schedule.csv'
DRIVERNAME BUTTERVOLUME_DRIVERNAME anybox/buttervolume:latest
RUNPATH BUTTERVOLUME_RUNPATH /run/docker
SOCKET BUTTERVOLUME_SOCKET os.path.join(RUNPATH, 'plugins', 'btrfs.sock')

hop it helps

from buttervolume.

bananer avatar bananer commented on May 20, 2024

@petrus-v thanks for looking into this!

It seems like the code you pointed to only reads /etc/buttervolume/config.ini inside the container.

The readme file however claims I can also put configuration in /var/lib/buttervolume/config/config.ini on the host, but that is not working for me.

Maybe the readme is incorrect?

from buttervolume.

ccomb avatar ccomb commented on May 20, 2024

Hi @bananer,
maybe it depends whether you build as a docker plugin or not. There is a configuration file here, which is documented here that shows that /etc/buttervolume in the plugin is bind-mounted to /var/lib/buttervolume/config on the host.

from buttervolume.

Related Issues (20)

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.