https://github.com/stone/deb-builder
Debian package builder using docker.
https://github.com/stone/deb-builder
Last synced: 2 months ago
JSON representation
Debian package builder using docker.
- Host: GitHub
- URL: https://github.com/stone/deb-builder
- Owner: stone
- Created: 2019-02-19T10:58:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-19T11:01:49.000Z (over 7 years ago)
- Last Synced: 2025-01-18T19:29:38.182Z (over 1 year ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker image for building debian packages
Build docker base image:
docker build -t deb-builder:18.04 -f Dockerfile-ubuntu-18.04 .
docker build -t deb-builder:17.04 -f Dockerfile-ubuntu-17.04 .
Use build:
usage: build [options...] SOURCEDIR
Options:
-i IMAGE Name of the docker image (including tag) to use as package build environment.
-o DIR Destination directory to store packages to.
-d DIR Directory that contains other deb packages that need to be installed before build.
-r DIR Directory of shell scripts to be run in the container before building.
-k Keep docker container after build.
mkdir /tmp/deb
./build -i deb-builder:18.04 -o /tmp/deb -r example/prerun.d -p example/postrun.d example/hello-2.10
ls /tmp/deb
hello_2.10-1_amd64.build
hello_2.10-1_amd64.buildinfo
hello_2.10-1_amd64.changes
hello_2.10-1_amd64.deb
hello-dbgsym_2.10-1_amd64.ddeb