Sign inSign up

rscorer/rust-docker-ci

By rscorer

Updated over 1 year ago

For building rust apps on gitlab

Image
Integration & delivery
Developer tools
0

935

rscorer/rust-docker-ci repository overview

Dockerfile:

FROM rust:latest

# Install alternative linker and psql
RUN apt update \
    && apt install lld clang postgresql-client -y \
    && rm -rf /var/lib/apt/lists/*;

# Install prebuilt cargo-binstall from cargo-bins
RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash

# Install linting and formatting support from rustup
RUN rustup component add clippy rustfmt

# Install auditing and code coverage from cargo
RUN cargo binstall cargo-tarpaulin cargo-audit

# Install sqlx from cargo
RUN cargo install --version="~0.8" sqlx-cli --no-default-features --features rustls,postgres

Build command:

$ docker buildx build --platform linux/amd64,linux/arm64 -t rscorer/rust-docker-ci .
$ docker push rscorer/rust-docker-ci

Tag summary

Content type

Image

Digest

sha256:b18febb95

Size

775.1 MB

Last updated

over 1 year ago

docker pull rscorer/rust-docker-ci