sonic-buildimage/dockers/docker-lldp/Dockerfile

23 lines
804 B
Docker
Raw Normal View History

FROM docker-base
2016-03-08 13:42:20 -06:00
COPY deps/sswsdk*.whl deps/lldpsyncd_*.deb deps/lldpd_*.deb /deps/
2016-03-08 13:42:20 -06:00
## Pre-install the fundamental packages
## Install Python SSWSDK (lldpsyncd dependency)
2016-03-08 13:42:20 -06:00
## Install LLDP Sync Daemon
## Note: dpkg_apt function has the benefit to detect missing .deb file
## Clean up
RUN apt-get update && \
dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; } && \
dpkg_apt /deps/lldpd_*.deb && \
dpkg_apt /deps/lldpsyncd_*.deb && \
2016-09-09 19:53:41 -05:00
apt-get install -y python-pip supervisor && \
pip install /deps/sswsdk*.whl && \
2016-08-04 12:39:33 -05:00
apt-get remove -y python-pip && \
apt-get purge -y && apt-get autoclean -y && apt-get autoremove -y && \
rm -rf /deps ~/.cache
2016-09-09 19:53:41 -05:00
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
2016-09-09 19:53:41 -05:00
ENTRYPOINT ["/usr/bin/supervisord"]