Skip to content

Commit 05dbc5a

Browse files
authored
adds Healthcheck fixes #29 (#30)
1 parent 509e49c commit 05dbc5a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,14 @@ RUN groupadd -r fossildb \
1313
&& chmod 777 . \
1414
&& chown -R fossildb .
1515

16+
RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \
17+
wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \
18+
chmod +x /bin/grpc_health_probe
19+
20+
EXPOSE 7155
21+
22+
HEALTHCHECK \
23+
--interval=2s --timeout=5s --retries=30 \
24+
CMD /bin/grpc_health_probe -addr=:7155
25+
1626
CMD [ "fossildb" ]

0 commit comments

Comments
 (0)