Skip to content

Commit 0a247a9

Browse files
authored
OCI: Add curl program, to unlock Docker Compose health checks (#419)
## About The existing healtcheck endpoint http://localhost:8080/health can now be used without much ado within Docker Compose service definitions, and it works well. ```yaml healthcheck: test: ["CMD", "curl", "--fail", "http://localhost:8080/health"] start_period: 3s interval: 1.5s retries: 30 timeout: 30s ``` ## References - Resolves: #418 - See also: crate/cratedb-examples#1320 (review)
1 parent 4d649d7 commit 0a247a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ FROM debian:bookworm-slim
4747
LABEL org.opencontainers.image.source=https://github.com/roapi/roapi
4848

4949
RUN apt-get update \
50-
&& apt-get install -y libssl-dev ca-certificates \
50+
&& apt-get install -y libssl-dev ca-certificates curl \
5151
&& rm -rf /var/lib/apt/lists/*
5252
COPY test_data /test_data
5353
COPY --from=builder /roapi_src/target/release/roapi /usr/local/bin/roapi

0 commit comments

Comments
 (0)