Sign inSign up

dantes2104/drbd-builder

By dantes2104

Updated 7 months ago

Project that helps to build DRBD kernel module and DRBD utils on Debian-based systems

Image
Databases & storage
0

410

dantes2104/drbd-builder repository overview

DRBD Builder

This project helps to build DRBD kernel module and DRBD utils mostly for Debian-based systems (Debian, Ubuntu, etc.).

Features

  • Using Docker to build DRBD and don't pollute your system.
  • Configure APT proxy repository
  • Installation all required dependencies for building.
  • Compile Coccinelle instead of installing it from repository.

Usage

Run docker container to start building and don't pollute your system. You can use tag debian or ubuntu for different distributions.

docker run --rm \
-v $(pwd)/result:/result \
-e DRBD_BUILDER_COCCINELE_ENABLED_BUILD=on \
-e DRBD_BUILDER_DRBD_KERNEL_MODULE_ENABLED_BUILD=on \
-e DRBD_BUILDER_DRBD_UTILS_ENABLED_BUILD=on \
-e DRBD_BUILDER_RESULT_UID=$(id -u) \
-e DRBD_BUILDER_RESULT_GUID=$(id -g) \
dantes2104/drbd-builder:debian

Script create two folders:

  • /result/kernel/module - DRBD Kernel Module
  • /result/utils - DRBD Utils

Configuration

Variable nameDescriptionPossible values
DRBD_BUILDER_LOG_LEVELLevel of loggingdebug, info, warning, error
DRBD_BUILDER_APT_HTTP_PROXYProxy for installing dependencies for HTTP repositories
DRBD_BUILDER_APT_HTTPS_PROXYProxy for installing dependencies for HTTPS repositories
DRBD_BUILDER_COCCINELE_ENABLED_BUILDBuilding Coccinele instead of installing from repository (Required for DRBD Kernel Module)on, yes, true
DRBD_BUILDER_COCCIENELE_ENABLED_INSTALLInstalling Coccinele from repository instead of building (may be produce errors on building DRBD Kernel Module)
DRBD_BUILDER_COCCINELE_VERSIONVersion of Coccinele to build (git tag in official repository)
DRBD_BUILDER_DRBD_KERNEL_MODULE_ENABLED_BUILDEnable building DRBD Kernel Moduleon, yes, true
DRBD_BUILDER_DRBD_KERNEL_MODULE_VERSIONVersion of DRBD Kernel Module (git tag in official repository)
DRBD_BUILDER_DRBD_UTILS_ENABLED_BUILDEnable building DRBD Utils
DRBD_BUILDER_DRBD_UTILS_VERSIONVersion of DRBD Utils (git tag in official repository)
DRBD_BUILDER_RESULT_UIDOwner of result folder and files insideone of possible value is $(id -u)
DRBD_BUILDER_RESULT_GUIDOwner group of result folder and files insideone of possible value is $(id -g)

Tag summary

Content type

Image

Digest

sha256:824c0a2aa

Size

47 MB

Last updated

7 months ago

docker pull dantes2104/drbd-builder:debian