mirror of
https://codeberg.org/JasterV/docker.git
synced 2026-04-26 18:10:02 +00:00
feat: first commit
This commit is contained in:
parent
61cc4fbf6c
commit
b2c244fecd
3 changed files with 40 additions and 1 deletions
16
.woodpecker/publish-rust-ci-image.yml
Normal file
16
.woodpecker/publish-rust-ci-image.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
when:
|
||||
event: [push, manual]
|
||||
branch: main
|
||||
path: ["rust.Dockerfile"]
|
||||
|
||||
steps:
|
||||
publish:
|
||||
image: plugins/kaniko
|
||||
settings:
|
||||
repo: jasterv/rust-ci
|
||||
tags: latest
|
||||
username:
|
||||
from_secret: DOCKERHUB_USERNAME
|
||||
password:
|
||||
from_secret: DOCKERHUB_PASSWORD
|
||||
dockerfile: rust.Dockerfile
|
||||
|
|
@ -1,3 +1,7 @@
|
|||
# docker
|
||||
|
||||
My docker images
|
||||
In this repo I define my public docker images for my own use.
|
||||
|
||||
## Public images
|
||||
|
||||
+ `jasterv/rust-ci`: Based on the official `rust` image but contains additional tools that I use on all my projects: `cargo clippy`, `cargo nextest`, `cargo deny`, `cargo make`
|
||||
|
|
|
|||
19
rust.Dockerfile
Normal file
19
rust.Dockerfile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
FROM rust:1.93.1-slim-bookworm
|
||||
|
||||
# Install system dependencies for cargo-binstall and common rust crates
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
ca-certificates \
|
||||
pkg-config \
|
||||
libssl-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Pre-install rustup components
|
||||
RUN rustup component add clippy rustfmt
|
||||
|
||||
# Install cargo-binstall and your tools
|
||||
RUN curl -Lskj https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz | tar -xz -C /usr/local/bin
|
||||
RUN cargo binstall --no-confirm cargo-make cargo-deny cargo-nextest
|
||||
|
||||
# Set environment variables so they don't need to be in .woodpecker.yml
|
||||
ENV CARGO_TERM_COLOR=always
|
||||
Loading…
Reference in a new issue