f74de8914b
* SONiC system telemetry Support Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com> * Update package name from telemetry to sonic-telemetry Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
32 lines
742 B
Django/Jinja
32 lines
742 B
Django/Jinja
FROM docker-config-engine
|
|
|
|
## Make apt-get non-interactive
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -f -y libdbus-1-3 libdaemon0 libjansson4
|
|
|
|
## Install redis-tools dependencies
|
|
## TODO: implicitly install dependencies
|
|
RUN apt-get -y install libjemalloc1
|
|
|
|
COPY \
|
|
{% for deb in docker_sonic_telemetry_debs.split(' ') -%}
|
|
debs/{{ deb }}{{' '}}
|
|
{%- endfor -%}
|
|
debs/
|
|
|
|
RUN dpkg -i \
|
|
{% for deb in docker_sonic_telemetry_debs.split(' ') -%}
|
|
debs/{{ deb }}{{' '}}
|
|
{%- endfor %}
|
|
|
|
COPY ["start.sh", "telemetry.sh", "dialout.sh", "/usr/bin/"]
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
|
|
|
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
|
|
RUN rm -rf /debs
|
|
|
|
ENTRYPOINT ["/usr/bin/supervisord"]
|