This builds a Rust project Docker container designed for use in Gitlab CI for Rust projects.
It is derived from the official rust image and includes:
rustupcargorustfmtclippycargo-kcov(and the underlyingkcovbinary)cargo-readmecargo-treecargo-outdatedcargo-tarpaulinjust
To just grab a local copy:
docker pull bradqwood/rust-build-docker:latest
In a gitlab-ci.yml file just set your image like so:
image: bradqwood/rus-build-docker:latest
...- Reduce image size (I've looked at alpine but a number of the build tools won't compile against musl c lib)
- ko1nksm/kcov-alpine-docker
for inspiration / code for the
kcovstuff.