Comments (3)
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.
@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.
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)
- volume labels are losts HOT 1
- documentation for migrating existing volumes (on btrfs) to buttervolume HOT 1
- Using Buttervolume inside Docker container HOT 5
- docker-runc has become runc in docker-ce 18.9.0 HOT 4
- sshd zombie process HOT 9
- userns-remap and buttervolume
- purge : prevent confusing m with month
- Allow to use buttervolume without any BTRFS partition
- Cannot enable plugin: No btrfs.sock created HOT 7
- exec failed: container "xxxxx" does not exist HOT 3
- Compression is not working? HOT 4
- Allow to enable/disable all the schedules at once HOT 3
- kill the schedule Timer when the main process is killed? HOT 1
- Change SSH port HOT 1
- Error 500 when creating volume in version 3.9 HOT 3
- cow = opts.get : AttributeError: 'NoneType' object has no attribute 'get'" HOT 1
- incremental snapshot to object storage
- freeze due to old-style front-end mode (unix socket)
- Relationship to the built-in BTRFS storage driver? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buttervolume.