1. debocker(8)
  2. debocker
  3. debocker(8)

NAME

debocker - build Debian packages with docker

SYNOPSIS

debocker [OPTS] COMMAND [COMMAND OPTS] [ARGS]

DESCRIPTION

Debocker builds Debian packages inside docker. The build process is contained in docker images and (almost) no other tools are needed to develop Debian packages on the main system. Moreover, docker's image cache reuses the same system state whenever possible. In particular, when a package is built for the second time, its dependecies and buildchain are not downloaded nor installed again.

Debocker is also able to create a self-contained bundle with everything necessary to build a package with docker only.

You do not have to be root to run debocker, but you have to be able to use docker(1) command. In Debian, it means that you must be a member of the docker group.

The build process consists of 5 steps:

  1. uprade - the base image is updated to the most recent packages (with apt-get)
  2. install-utils - the Debian toolchain is installed
  3. install-deps - the build dependencies of the package are installed
  4. extract-source - the source package is extracted
  5. build - the proper build is executed

COMMANDS

Each command accepts --help option that shows its basic CLI usage.

OPTIONS

-v, --verbose

Make debocker's output verbose.

--help

Show summary of CLI usage.

Global options must be given before the name of the command.

FILES

There are no config files.

EXAMPLES

Assuming that you are in a directory with a Debian source package:

$ debocker build

will build the package in Debian unstable (the built files will be stored in the parent directory). If the build was successful, every subsequent run should use cache instead. You may force rebuild at any stage by using --from option. To rebuild the package, you may use:

$ debocker build --from=build

The build command is equivalent, save for the undeleted, intermediary file, with:

$ debocker bundle --output /tmp/bundle.tar
$ debocker build-bundle /tmp/bundle.tar --output ..

You may pass custom flags to your build:

$ debocker build --flags='-j4'

To create a (pseudo)-reproducible, compressed bundle with your package and to build it using docker:

$ debocker bundle --output /tmp/bundle.tar
$ docker run - < /tmp/bundle.tar

BUGS

Debocker does not clean after itself. If you are not careful, docker images may consume a lot of space.

And probably many more.

AUTHOR

Initial idea and coding has been done by Tomasz Buchert tomasz@debian.org.

Initial packaging, many ideas and a lot of support by Dariusz Dwornikowski.

The semi-official homepage is http://debocker.debian.net.

SEE ALSO

pbuiler(8), docker(1), devscripts(1), pristine-tar(1)

  1. Debian
  2. July 2015
  3. debocker(8)