Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aorith/deb-docker-builder

Build simple debian binary packages with docker
https://github.com/aorith/deb-docker-builder

Last synced: 1 day ago
JSON representation

Build simple debian binary packages with docker

Awesome Lists containing this project

README

        

> Generate simple debian binary packages.

* [new-recipe.sh](new-recipe.sh) creates the skeleton of a new recipe to build a package.
* [build.sh](build.sh) builds a package from one of the existing recipes.

When building a package the contents of `recipes//` will be available inside of the container in two directories:

- `/recipe-ro` a read-only bind mount
- `/recipe` a copy of the contents, *scripts* should do its work here

All the *scripts* or binaries with execution permissions found at `/recipe/build/scripts` (which would be `recipes///build/scripts` outside of the container) will be executed in order.
When those *scripts* finish the contents of `/recipe/package` will be built into a `.deb` file and saved to the `output/` directory outside of the container.

The `DEBIAN/control` file should include:

```
Package:
Version:
Architecture:
Maintainer:
Depends: (optional but recommended)
Section:
Priority: optional
Description:
```

Check [recipes/hello-world/bullseye](./recipes/hello-world/bullseye) for an example.