Remove usage of CRONTAB
This commit is contained in:
parent
6d6753b38e
commit
37c1089fc5
6 changed files with 80 additions and 100 deletions
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue