Added Docker healthcheck to README.md

This commit is contained in:
Tigerblue77 2024-01-31 22:31:26 +00:00
parent cf69481bbd
commit 10d8be656a
2 changed files with 28 additions and 1 deletions

View file

@ -7,12 +7,15 @@ RUN apt-get update
RUN apt-get install ipmitool -y
ADD functions.sh /app/functions.sh
ADD healthcheck.sh /app/healthcheck.sh
ADD Dell_iDRAC_fan_controller.sh /app/Dell_iDRAC_fan_controller.sh
RUN chmod 0777 /app/functions.sh /app/Dell_iDRAC_fan_controller.sh
RUN chmod 0777 /app/functions.sh /app/healthcheck.sh /app/Dell_iDRAC_fan_controller.sh
WORKDIR /app
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD [ "/app/healthcheck.sh" ]
# you should override these default values when running. See README.md
#ENV IDRAC_HOST 192.168.1.100
ENV IDRAC_HOST local