Skip to content

Commit

Permalink
adds Healthcheck fixes #29 (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
normanrz authored Jan 8, 2019
1 parent 509e49c commit 05dbc5a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,14 @@ RUN groupadd -r fossildb \
&& chmod 777 . \
&& chown -R fossildb .

RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \
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 && \
chmod +x /bin/grpc_health_probe

EXPOSE 7155

HEALTHCHECK \
--interval=2s --timeout=5s --retries=30 \
CMD /bin/grpc_health_probe -addr=:7155

CMD [ "fossildb" ]

0 comments on commit 05dbc5a

Please sign in to comment.