Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanders41/cargo-deb-runner
Docker image to build deb packages Rust projects with cargo-deb
https://github.com/sanders41/cargo-deb-runner
cargo-deb deb docker rust
Last synced: about 2 months ago
JSON representation
Docker image to build deb packages Rust projects with cargo-deb
- Host: GitHub
- URL: https://github.com/sanders41/cargo-deb-runner
- Owner: sanders41
- License: mit
- Created: 2024-02-29T10:59:47.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-01T18:26:37.000Z (10 months ago)
- Last Synced: 2024-10-12T18:59:45.464Z (3 months ago)
- Topics: cargo-deb, deb, docker, rust
- Language: Dockerfile
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cargo-deb Runner
[![Tests Status](https://github.com/sanders41/cargo-deb-runner/actions/workflows/testing.yml/badge.svg?branch=main&event=push)](https://github.com/sanders41/cargo-deb-runner/actions?query=workflow%3ATesting+branch%3Amain+event%3Apush)
This Docker image builds `deb` packages from Rust projects using
[cargo-deb](https://github.com/kornelski/cargo-deb).## Usage
### Build the image
```sh
docker build -t cargo-deb-runner .
```### Creating the `deb` package
To build the `deb` package run the docker image from within the root directory of the Rust project,
mounting the directory as a volume. This will create the `deb` package in the `target/debian`
directory.```sh
docker run --rm -v ${PWD}:/builder cargo-deb-runner
```Command like flags can also be passed to the build. For example, by default `cargo-deb` appends a
`-1` post tag to the version of the package. To exclude this set the `deb-revision` flag.```sh
docker run --rm -v ${PWD}:/builder cargo-deb-runner --deb-revision=""
```