From d020fb8241735e6f7337a1c4007ffc25a63fad4d Mon Sep 17 00:00:00 2001 From: Louis Capitanchik <contact@louiscap.co> Date: Sun, 17 Nov 2024 03:44:51 +0000 Subject: [PATCH] Add README.md --- README.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..4128b56 --- /dev/null +++ b/README.md @@ -0,0 +1,39 @@ +# Rust Base Image + +Rust base image for use in Gitlab CI. Includes extra tools to support the CI use case + +## Usage + +To use this image as the base for your CI pipeline, include the following at the head of your `.gitlab-ci.yml`: + +```yaml +image: cr.weirdboi.dev/base/rust:1.82 +``` + +To use this image for a specific pipeline job, include the following in your job spec: + +```yaml +my_build_step: + stage: build + image: cr.weirdboi.dev/base/rust:1.82 + script: + # ... +``` + +## Additional Tools + +### Rustup + +- Rustup is installed and configured using the default profile, which includes `fmt` and `clippy`. +- Only the default linux x86-64 toolchain is installed +- Stable rust is the default version, where the image tag dictates which rust version is being used +- Nightly rust is installed, where the version is based on the build time of the image + +### Cargo Tools + +- `cargo binstall` - Install prebuilt binaries from crates.io +- `cargo nextest` - Efficient testing + +### Extra Binaries + +- `junitify` - Can be used to transform the output of `cargo test` into a junit.xml file \ No newline at end of file -- GitLab