txoo: healthcheck based on latest block
- fail if latest attestation is more than a block behind Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
This commit is contained in:
@@ -30,14 +30,22 @@ RUN apk update && \
|
||||
build-base \
|
||||
bind-tools \
|
||||
libev-dev \
|
||||
curl-dev
|
||||
curl-dev \
|
||||
curl \
|
||||
jq
|
||||
|
||||
COPY --from=builder /usr/local/bin/txood /usr/bin/txood
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
COPY healthcheck.sh /healthcheck.sh
|
||||
RUN chmod +x /healthcheck.sh
|
||||
|
||||
VOLUME ["${TXOO_DATA}"]
|
||||
|
||||
HEALTHCHECK --interval=5s --timeout=10s --start-period=5s \
|
||||
CMD ["/bin/sh", "-c", "/healthcheck.sh"]
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["txood"]
|
||||
|
||||
Reference in New Issue
Block a user