Splitted functions from main code

This commit is contained in:
Tigerblue77 2024-01-28 23:26:56 +00:00
parent 52e5fb2c90
commit 4df520d6c8
3 changed files with 100 additions and 96 deletions

View file

@ -6,9 +6,12 @@ RUN apt-get update
RUN apt-get install ipmitool -y
ADD Dell_iDRAC_fan_controller.sh /Dell_iDRAC_fan_controller.sh
ADD functions.sh /app/functions.sh
ADD Dell_iDRAC_fan_controller.sh /app/Dell_iDRAC_fan_controller.sh
RUN chmod 0777 /Dell_iDRAC_fan_controller.sh
RUN chmod 0777 /app/functions.sh /app/Dell_iDRAC_fan_controller.sh
WORKDIR /app
# you should override these default values when running. See README.md
#ENV IDRAC_HOST 192.168.1.100
@ -20,4 +23,4 @@ ENV CPU_TEMPERATURE_THRESHOLD 50
ENV CHECK_INTERVAL 60
ENV DISABLE_THIRD_PARTY_PCIE_CARD_DELL_DEFAULT_COOLING_RESPONSE false
CMD ["/Dell_iDRAC_fan_controller.sh"]
CMD ["./Dell_iDRAC_fan_controller.sh"]