Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.
/ dbuilder Public archive
forked from seznam/dbuilder

Docker images for building packages with clean dependencies in multiple distributions.

License

Notifications You must be signed in to change notification settings

KeNaCo/dbuilder

Repository files navigation

dbuilder

Docker images for building packages with clean dependencies in multiple distributions.

Usage

All images are available on docker hub https://hub.docker.com/r/seznam/dbuilder/.

The only thing you have to do is to choose a tag (generated from config.yaml) e.g. 'jessie_latest' and run: (Docker will automatically pull that image so you don't neet to build anything)

docker run -it --rm -v `pwd`:/dbuilder/sources seznam/dbuilder:debian_jessie

and *.deb will appear in your source directory

Control environment variables

  • general

    • DBUILDER_SUBDIR - cd to subdir before building starts
    • NCPUS - concurrency
  • apt based:

    • DBUILDER_BUILD_CMD - [default="dpkg-buildpackage -j${NCPUS}"]

For maintaners

Prepare

./generate-dockerfiles.py

Build

make -C dockerfiles/ build

Push

make -C dockerfiles/ push

Generating dockerfiles

$ ./generate_dockerfiles.py -h
Usage: generate_dockerfiles.py [options]

Options:
  -h, --help            show this help message and exit
  -c CONFIGURATION_FILE, --configuration-file=CONFIGURATION_FILE
                        Configuration file path [config.yaml]
  -o OUTPUT_DIR, --output-dir=OUTPUT_DIR
                        Output directory [./dockerfiles/]

All relative paths in configuration file are taken to dirname(configuration file).

About

Docker images for building packages with clean dependencies in multiple distributions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.6%
  • Shell 9.5%
  • Makefile 0.9%