Skip to content

Commit fc57480

Browse files
authored
chore: release 0.5.7-stable (#275)
* chore: release 0.5.7-stable * fix: image build * fix: production docker image
1 parent 1dfc385 commit fc57480

4 files changed

Lines changed: 20 additions & 8 deletions

File tree

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# stage 1 - Setup cargo-chef
2-
FROM --platform=$BUILDPLATFORM rust:1.96.0-alpine3.23 as planner
2+
FROM --platform=$BUILDPLATFORM rust:1.96.0-alpine3.23 AS planner
33

44
WORKDIR /app
55
RUN apk add gcc g++ make
@@ -10,10 +10,10 @@ COPY ./crates/metrs_stubs ./crates/metrs_stubs
1010
COPY ./crates/metrsd_client ./crates/metrsd_client
1111
COPY ./bin/metrs/Cargo.toml ./bin/metrs/Cargo.toml
1212
COPY ./bin/metrsd/Cargo.toml ./bin/metrsd/Cargo.toml
13-
RUN cargo chef prepare --recipe-path recipe.json --bin ./bin/metrsd
13+
RUN cargo chef prepare --recipe-path recipe.json --bin metrsd
1414

1515
# stage 2 - Cook our dependencies
16-
FROM --platform=$BUILDPLATFORM rust:1.96.0-alpine3.23 as cacher
16+
FROM --platform=$BUILDPLATFORM rust:1.96.0-alpine3.23 AS cacher
1717

1818
WORKDIR /app
1919
COPY --from=planner /usr/local/cargo/bin/cargo-chef /usr/local/cargo/bin/cargo-chef
@@ -24,7 +24,7 @@ RUN export ARCH=$(uname -m) \
2424
&& cargo chef cook --release --target=$ARCH-unknown-linux-musl --recipe-path recipe.json --bin metrsd
2525

2626
# stage 3 - Build our project
27-
FROM --platform=$BUILDPLATFORM rust:1.96.0-alpine3.23 as builder
27+
FROM --platform=$BUILDPLATFORM rust:1.96.0-alpine3.23 AS builder
2828

2929
## Build our metrs daemon binary
3030
WORKDIR /app
@@ -48,8 +48,8 @@ FROM --platform=$BUILDPLATFORM scratch
4848
## Copy the binary
4949
COPY --from=builder /bin/metrsd /bin/metrsd
5050

51-
LABEL org.opencontainers.image.source https://github.com/next-hat/metrs
52-
LABEL org.opencontainers.image.description Metrics Emitter
51+
LABEL org.opencontainers.image.source="https://github.com/next-hat/metrs"
52+
LABEL org.opencontainers.image.description="Metrics Emitter"
5353

5454
## Set entrypoint
5555
ENTRYPOINT ["/bin/metrsd"]

bin/metrsd/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.5.7] - 2026-06-01
9+
10+
### Updated
11+
12+
- Dependencies update
13+
- Upgrade to ntex 3
14+
- Upgrade to rust 1.96
15+
816
## [0.5.6] - 2025-03-10
917

1018
### Updated

bin/metrsd/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@ serde = { version = "1", features = ["derive"] }
2626
serde_json = "1"
2727
sysinfo = "0.39"
2828
tokio = { version = "1", features = ["sync"] }
29-
metrs_stubs = { version = "0.5", features = ["serde", "sysinfo", "bytes"] }
29+
metrs_stubs = { version = "0.5", path = "../../crates/metrs_stubs", features = [
30+
"serde",
31+
"sysinfo",
32+
"bytes",
33+
] }

crates/metrsd_client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ ntex = { version = "3" }
2323
serde = { version = "1", features = ["derive"] }
2424
serde_json = "1"
2525
thiserror = "2"
26-
metrs_stubs = { version = "0.5", features = ["serde"] }
26+
metrs_stubs = { version = "0.5", path = "../metrs_stubs", features = ["serde"] }

0 commit comments

Comments
 (0)