mirror of
https://github.com/tigerblue77/Dell_iDRAC_fan_controller_Docker.git
synced 2025-11-02 13:03:14 +00:00
Remove usage of CRONTAB
This commit is contained in:
23
Dockerfile
23
Dockerfile
@@ -1,24 +1,14 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
MAINTAINER tigerblue77
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
RUN apt-get install ipmitool cron -y
|
||||
RUN apt-get install ipmitool -y
|
||||
|
||||
COPY crontab /etc/cron.d/dell_idrac_fan_control
|
||||
ADD Dell_iDRAC_fan_controller.sh /Dell_iDRAC_fan_controller.sh
|
||||
|
||||
RUN chmod 0777 /etc/cron.d/dell_idrac_fan_control
|
||||
|
||||
RUN touch /var/log/cron.log
|
||||
|
||||
ADD check_temp.sh /opt/check_temp.sh
|
||||
|
||||
ADD startup.sh /startup.sh
|
||||
|
||||
RUN chmod 0777 /opt/check_temp.sh
|
||||
|
||||
RUN chmod 0777 /startup.sh
|
||||
|
||||
RUN /usr/bin/crontab /etc/cron.d/dell_idrac_fan_control
|
||||
RUN chmod 0777 /Dell_iDRAC_fan_controller.sh
|
||||
|
||||
# you should override these default values when running. See README.md
|
||||
#ENV IDRAC_HOST 192.168.1.100
|
||||
@@ -27,5 +17,6 @@ ENV IDRAC_HOST local
|
||||
#ENV IDRAC_PASSWORD calvin
|
||||
ENV FAN_SPEED 5
|
||||
ENV CPU_TEMPERATURE_TRESHOLD 50
|
||||
ENV CHECK_INTERVAL 60
|
||||
|
||||
CMD /startup.sh && /opt/check_temp.sh && cron && tail -f /var/log/cron.log
|
||||
CMD /Dell_iDRAC_fan_controller.sh
|
||||
|
||||
Reference in New Issue
Block a user