mirror of
https://github.com/Noratrieb/cargo-bisect-rustc-service.git
synced 2026-01-14 16:25:01 +01:00
Add metrics endpoint
This commit is contained in:
parent
13f89b68ef
commit
316a40442e
6 changed files with 600 additions and 224 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue