2016-12-05 13:12:19 -06:00
|
|
|
FROM docker-base
|
|
|
|
|
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-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
|
|
|
|
|
|
|
|
# Dependencies for sonic-cfggen
|
|
|
|
RUN apt-get install -y python-lxml python-jinja2 python-netaddr python-ipaddr python-yaml
|
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/"]
|
|
|
|
COPY ["lldpd.conf.j2", "/etc/swss/lldp/"]
|
|
|
|
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
|