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-05-08 17:43:31 -05:00
|
|
|
RUN apt-get update && apt-get install -y python-pip libbsd0 libevent-2.0-5 libjansson4 libwrap0 libxml2 libpci3 libperl5.20
|
2017-01-19 22:56:26 -06:00
|
|
|
|
2017-03-30 13:51:05 -05:00
|
|
|
# Pre-install the fundamental packages
|
|
|
|
# Install Python SwSS SDK
|
|
|
|
# Install LLDP Sync Daemon
|
2016-12-05 13:12:19 -06:00
|
|
|
|
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
|
|
|
|
2017-03-30 13:51:05 -05:00
|
|
|
RUN pip install /python-wheels/swsssdk-2.0.1-py2-none-any.whl && \
|
2016-12-05 13:12:19 -06:00
|
|
|
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
|
|
|
|
2017-05-08 17:43:31 -05:00
|
|
|
COPY ["start.sh", "/usr/bin/"]
|
|
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
|
|
|
COPY ["reconfigure.sh", "/opt/"]
|
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-05-08 17:43:31 -05:00
|
|
|
ENTRYPOINT ["/usr/bin/supervisord"]
|
|
|
|
|