ea65962fe4
Fix docker-platform-monitor compilation issue. Update .gitignore file
34 lines
919 B
Django/Jinja
Executable File
34 lines
919 B
Django/Jinja
Executable File
FROM docker-base
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y smartmontools sensord
|
|
|
|
# Dependencies for sonic-cfggen
|
|
RUN apt-get install -y python-lxml python-jinja2 python-netaddr python-ipaddr python-yaml
|
|
|
|
COPY \
|
|
{% for deb in docker_platform_monitor_debs.split(' ') -%}
|
|
debs/{{ deb }}{{' '}}
|
|
{%- endfor -%}
|
|
debs/
|
|
|
|
|
|
RUN dpkg -i \
|
|
{% for deb in docker_platform_monitor_debs.split(' ') -%}
|
|
debs/{{ deb }}{{' '}}
|
|
{%- endfor %}
|
|
|
|
## 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
|