Add metrics endpoint

This commit is contained in:
nora 2024-03-31 15:44:39 +02:00
parent 13f89b68ef
commit 316a40442e
6 changed files with 600 additions and 224 deletions

View file

@ -1,4 +1,4 @@
FROM rust:1.72 as build
FROM rust:1.77 as build
RUN rustup toolchain install nightly
RUN rustup default nightly
@ -22,7 +22,7 @@ RUN touch src/main.rs
RUN cargo build --release
### RUN
FROM rust:1.72
FROM rust:1.77
RUN cargo install cargo-bisect-rustc
@ -32,6 +32,10 @@ WORKDIR /app
RUN useradd --create-home bisector
USER bisector
# this server listens on port 4000 and 4001 (metrics)
EXPOSE 4000
EXPOSE 4001
COPY --from=build /app/target/release/cargo-bisect-rustc-service cargo-bisect-rustc-service
CMD ["/app/cargo-bisect-rustc-service"]