Add healthcheck
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is passing

This commit is contained in:
IamTheFij 2020-07-14 16:51:38 -07:00
parent 2cfd51347a
commit 48af0c7e18
2 changed files with 9 additions and 0 deletions

View File

@ -8,5 +8,10 @@ COPY --from=qemu-user-static /usr/bin/qemu-* /usr/bin/
ARG GOARCH=amd64 ARG GOARCH=amd64
COPY ./cadvisor-${GOARCH} /usr/bin/cadvisor COPY ./cadvisor-${GOARCH} /usr/bin/cadvisor
ENV CADVISOR_HEALTHCHECK_URL=http://localhost:8080/healthz
HEALTHCHECK --interval=30s --timeout=3s \
CMD wget --quiet --tries=1 --spider $CADVISOR_HEALTHCHECK_URL || exit 1
EXPOSE 8080 EXPOSE 8080
ENTRYPOINT ["/usr/bin/cadvisor", "-logtostderr"] ENTRYPOINT ["/usr/bin/cadvisor", "-logtostderr"]

View File

@ -1,3 +1,7 @@
# cadvisor-multi-arch # cadvisor-multi-arch
A multi-arch build script for generating arm images of cadvisor A multi-arch build script for generating arm images of cadvisor
## Note
This does not include `libpfm` or `netgo`, which the upstream does include.