/bees-docker

Docker image build recipe for bees.

Primary LanguageDockerfileMIT LicenseMIT

Bees docker

Description

Docker image build recipe for bees.

Since bees only has installable packages for Arch and Gentoo, I created a very simple Dockerfile to be distro independent for my btrfs deduplication needs.

The container is nothing but a simple wrapper around the beesd script provided by bees.

Usage

  1. Clone this repository and cd into it
    git clone https://github.com/theCalcaholic/bees-docker
    cd bees-docker
  2. Build the docker container
    docker build -t beesd .
  3. Create a config file for beesd
    sudo mkdir -p /etc/bees
    sudo wget -O /etc/bees/my-disk.conf https://raw.githubusercontent.com/Zygo/bees/master/scripts/beesd.conf.sample
    # then edit at least the UUID in /etc/bees/my-disk.conf
  4. Run the docker container in privileged mode
    docker run --rm --privileged -v /dev/disk:/dev/disk -v /etc/bees:/etc/bees beesd <uuid-of-your-btrfs-root-volume>