2017-02-07 20:11:19 -06:00
|
|
|
FROM docker-config-engine
|
|
|
|
|
2017-02-16 23:48:49 -06:00
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2017-02-07 20:11:19 -06:00
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
RUN apt-get install -y smartmontools sensord
|
|
|
|
|
|
|
|
## Clean up
|
|
|
|
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
|
|
|
|
RUN rm -rf /debs
|
|
|
|
|
|
|
|
COPY ["config.sh", "/usr/bin/"]
|
|
|
|
|
|
|
|
ENTRYPOINT /usr/bin/config.sh \
|
|
|
|
&& service rsyslog start \
|
|
|
|
&& service lm-sensors start \
|
|
|
|
&& service smartmontools start \
|
|
|
|
&& service sensord start \
|
|
|
|
&& /bin/bash
|