2016-10-25 20:52:13 -05:00
|
|
|
FROM docker-base
|
|
|
|
|
2016-11-21 19:44:16 -06:00
|
|
|
COPY deps/sswsdk*.whl deps/sonic_d*.whl deps/lldpd_*.deb /deps/
|
2016-10-25 20:52:13 -05:00
|
|
|
|
|
|
|
## Pre-install the fundamental packages
|
2016-11-21 19:44:16 -06:00
|
|
|
## Install Python SSWSDK
|
2016-10-25 20:52:13 -05: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 && \
|
|
|
|
apt-get install -y python-pip supervisor && \
|
|
|
|
pip install /deps/sswsdk*.whl && \
|
|
|
|
pip install /deps/sonic_d*.whl && \
|
|
|
|
apt-get remove -y python-pip && \
|
|
|
|
apt-get purge -y && apt-get autoclean -y && apt-get autoremove -y && \
|
|
|
|
rm -rf /deps ~/.cache
|
|
|
|
|
|
|
|
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
2016-10-31 14:25:09 -05:00
|
|
|
COPY reconfigure.sh /opt/reconfigure.sh
|
2016-10-25 20:52:13 -05:00
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/supervisord"]
|