Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bradwood/rust-build-docker
Docker container for running rust builds in GitLab CI
https://github.com/bradwood/rust-build-docker
build cargo ci docker kcov lint rust test
Last synced: 22 days ago
JSON representation
Docker container for running rust builds in GitLab CI
- Host: GitHub
- URL: https://github.com/bradwood/rust-build-docker
- Owner: bradwood
- License: unlicense
- Created: 2020-03-22T11:40:03.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-20T22:17:14.000Z (over 4 years ago)
- Last Synced: 2024-12-06T19:28:34.499Z (27 days ago)
- Topics: build, cargo, ci, docker, kcov, lint, rust, test
- Language: Dockerfile
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rust-build-docker
This builds a Rust project Docker container designed for use in Gitlab CI for
Rust projects.## Contents
It is derived from the official rust image and includes:
- `rustup`
- `cargo`
- `rustfmt`
- `clippy`
- `cargo-kcov` (and the underlying `kcov` binary)
- `cargo-readme`
- `cargo-tree`
- `cargo-outdated`
- `cargo-tarpaulin`
- `just`## Usage
To just grab a local copy:
```bash
docker pull bradqwood/rust-build-docker:latest```
In a `gitlab-ci.yml` file just set your `image` like so:
```yaml
image: bradqwood/rus-build-docker:latest
...
```## TODO
- Reduce image size (I've looked at alpine but a number of the build tools
won't compile against musl c lib)## Credits
- [ko1nksm/kcov-alpine-docker](https://github.com/ko1nksm/kcov-alpine-docker)
for inspiration / code for the `kcov` stuff.