2017-02-07 20:11:19 -06:00
|
|
|
FROM docker-config-engine
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2017-01-19 14:19:21 -06:00
|
|
|
COPY \
|
|
|
|
{% for deb in docker_lldp_sv2_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
|
|
|
|
2016-12-05 13:12:19 -06:00
|
|
|
COPY python-wheels /python-wheels
|
|
|
|
|
2017-02-16 23:48:49 -06:00
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2017-01-19 22:56:26 -06:00
|
|
|
RUN apt-get update && apt-get install -y python-pip supervisor libbsd0 libevent-2.0-5 libjansson4 libwrap0 libxml2 libpci3 libperl5.20
|
|
|
|
|
2016-12-05 13:12:19 -06:00
|
|
|
## Pre-install the fundamental packages
|
|
|
|
## Install Python SSWSDK
|
|
|
|
## Install LLDP Sync Daemon
|
|
|
|
|
2016-12-23 17:22:06 -06:00
|
|
|
RUN dpkg -i \
|
|
|
|
{% for deb in docker_lldp_sv2_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor %}
|
2016-12-05 13:12:19 -06:00
|
|
|
|
|
|
|
RUN pip install /python-wheels/sswsdk-2.0.1-py2-none-any.whl && \
|
|
|
|
pip install /python-wheels/sonic_d-2.0.0-py2-none-any.whl && \
|
|
|
|
apt-get remove -y python-pip && \
|
|
|
|
apt-get purge -y && apt-get autoclean -y && apt-get autoremove -y && \
|
2016-12-23 17:22:06 -06:00
|
|
|
rm -rf /debs /python-wheels ~/.cache
|
2016-12-05 13:12:19 -06:00
|
|
|
|
|
|
|
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
|
|
COPY reconfigure.sh /opt/reconfigure.sh
|
2017-01-19 22:56:26 -06:00
|
|
|
COPY ["config.sh", "/usr/bin/"]
|
2017-02-18 19:50:29 -06:00
|
|
|
COPY ["lldpd.conf.j2", "/usr/share/sonic/templates/"]
|
2017-01-19 22:56:26 -06:00
|
|
|
COPY ["lldpd", "/etc/default/"]
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2017-01-19 22:56:26 -06:00
|
|
|
ENTRYPOINT /usr/bin/config.sh && /usr/bin/supervisord
|