Skip to content

Commit

Permalink
Merge pull request #6 from MiSArch/fixed-healthcheck
Browse files Browse the repository at this point in the history
Internal healthcheck endpoint + added wget dependency
  • Loading branch information
legendofa authored May 1, 2024
2 parents 999ef0f + 2f6fcf4 commit 9b15963
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions base-dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN cargo chef prepare --recipe-path recipe.json
FROM chef AS builder
COPY --from=planner /misarch-order/recipe.json recipe.json

RUN apt update && apt install -y pkg-config libssl-dev && rm -rf /var/lib/apt/lists/*
RUN apt update && apt install -y pkg-config libssl-dev wget && rm -rf /var/lib/apt/lists/*

# Build dependencies - this is the caching Docker layer!
RUN cargo chef cook --release --recipe-path recipe.json
Expand All @@ -22,7 +22,7 @@ RUN cargo build --release --bin misarch-order
# We do not need the Rust toolchain to run the binary!
FROM debian:bookworm-slim AS runtime

RUN apt update && apt install -y pkg-config libssl-dev && rm -rf /var/lib/apt/lists/*
RUN apt update && apt install -y pkg-config libssl-dev wget && rm -rf /var/lib/apt/lists/*

WORKDIR /misarch-order
COPY --from=builder /misarch-order/target/release/misarch-order /usr/local/bin
Expand Down
2 changes: 1 addition & 1 deletion dev-dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM rust:1.75-slim-bookworm

RUN apt update && apt install -y pkg-config libssl-dev && rm -rf /var/lib/apt/lists/*
RUN apt update && apt install -y pkg-config libssl-dev wget && rm -rf /var/lib/apt/lists/*

WORKDIR /usr/src/misarch-order

Expand Down
2 changes: 1 addition & 1 deletion devcontainer-dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM rust:1.75-slim-bookworm

RUN apt update && apt install -y pkg-config libssl-dev && rm -rf /var/lib/apt/lists/*
RUN apt update && apt install -y pkg-config libssl-dev wget && rm -rf /var/lib/apt/lists/*

WORKDIR /usr/src/misarch-order
2 changes: 1 addition & 1 deletion docker-compose-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
context: .
dockerfile: base-dockerfile
healthcheck:
test: wget http://localhost:8080/graphiql || exit 1
test: wget -qO - http://localhost:8080/health || exit 1
interval: 1s
timeout: 10s
retries: 20
Expand Down

0 comments on commit 9b15963

Please sign in to comment.