Some checks failed
Docker image CI / Build and publish Docker image to Docker Hub and GitHub Containers Repository (push) Has been cancelled
30 lines
906 B
Docker
30 lines
906 B
Docker
FROM ubuntu:latest
|
|
|
|
LABEL org.opencontainers.image.authors="tigerblue77"
|
|
|
|
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/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
|
|
# ENV IDRAC_USERNAME=root
|
|
# ENV IDRAC_PASSWORD=calvin
|
|
ENV FAN_SPEED=5
|
|
ENV CPU_TEMPERATURE_THRESHOLD=50
|
|
ENV CHECK_INTERVAL=60
|
|
ENV DISABLE_THIRD_PARTY_PCIE_CARD_DELL_DEFAULT_COOLING_RESPONSE=false
|
|
ENV KEEP_THIRD_PARTY_PCIE_CARD_COOLING_RESPONSE_STATE_ON_EXIT=false
|
|
|
|
ENTRYPOINT ["./Dell_iDRAC_fan_controller.sh"]
|