Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
type=raw,value=nightly-${{needs.set_date.outputs.date_today}}
build_args: |
NIGHTLY_VERSION_DATE=${{needs.set_date.outputs.date_today}}
registry: docker-oss.nexus.famedly.de
registry_user: ${{ vars.NEXUS_REGISTRY_USER }}
registry: registry.famedly.net/docker-oss
registry_user: ${{ vars.REGISTRY_USER }}
secrets: inherit

publish_dev:
Expand All @@ -54,8 +54,8 @@ jobs:
type=sha,prefix=dev-
build_args: |
NIGHTLY_VERSION_DATE=${{needs.set_date.outputs.date_today}}
registry: docker-nightly.nexus.famedly.de
registry_user: ${{ vars.NEXUS_REGISTRY_USER }}
registry: registry.famedly.net/nightly
registry_user: ${{ vars.REGISTRY_USER }}
secrets: inherit

publish_ghcr_release:
Expand Down
65 changes: 40 additions & 25 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,44 @@
FROM docker.io/rust:bookworm
FROM docker.io/rust:slim-bookworm

ARG NIGHTLY_VERSION_DATE
ENV NIGHTLY_VERSION=nightly-$NIGHTLY_VERSION_DATE

RUN apt update -yqq \
&& apt install -yqq --no-install-recommends \
build-essential cmake libssl-dev pkg-config git musl-tools jq xmlstarlet lcov protobuf-compiler libprotobuf-dev libprotoc-dev nats-server \
&& rustup toolchain add $NIGHTLY_VERSION --component rustfmt --component clippy --component llvm-tools-preview \
&& rustup toolchain add beta --component rustfmt --component clippy --component llvm-tools-preview \
&& rustup toolchain add stable --component rustfmt --component clippy --component llvm-tools-preview \
&& rustup default stable \
&& cargo install grcov \
cargo-cache \
cargo-llvm-cov \
cargo-deny \
sqlx-cli \
typos-cli \
conventional_commits_linter \
cargo-udeps \
cargo-nextest \
cargo-readme \
cargo-audit \
cargo-auditable \
cargo-license \
taplo-cli \
cargo-chef \
&& cargo cache -a
COPY cobertura_transform.xslt /opt/
# apt dependencies
## Run in one layer to avoid caching issues
RUN apt update -yqq && apt install -yqq --no-install-recommends \
build-essential \
cmake \
curl \
git \
jq \
lcov \
libprotobuf-dev \
libprotoc-dev \
libssl-dev \
musl-tools \
nats-server \
pkg-config \
protobuf-compiler \
yq \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

# cargo dependencies
RUN cargo install cargo-binstall --locked && cargo binstall --locked --no-confirm --disable-telemetry \
cargo-audit \
cargo-auditable \
cargo-cache \
cargo-chef \
cargo-deny \
cargo-llvm-cov \
cargo-nextest \
cargo-udeps \
sqlx-cli \
taplo-cli \
typos-cli \
&& cargo cache --autoclean

# rustup dependencies
## added to default stable toolchain
RUN rustup component add clippy llvm-tools-preview
## add nightly toolchain
RUN rustup toolchain add $NIGHTLY_VERSION --component rustfmt --component clippy
20 changes: 0 additions & 20 deletions cobertura_transform.xslt

This file was deleted.