2016-05-27 15:30:13 -05:00
|
|
|
FROM docker-base
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
2016-07-26 14:01:58 -05:00
|
|
|
COPY ["deps/libhiredis0.13*.deb", "deps/libswsscommon_*.deb", "deps/libopennsl_*.deb", "deps/libsaibcm_*.deb", "deps/libsairedis_*.deb", "deps/syncd_*.deb", "/deps/"]
|
2016-05-27 15:30:13 -05:00
|
|
|
|
2016-07-26 14:01:58 -05:00
|
|
|
RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; }; \
|
|
|
|
dpkg_apt /deps/libhiredis0.13*.deb \
|
|
|
|
&& dpkg_apt /deps/libswsscommon_*.deb \
|
|
|
|
&& dpkg_apt /deps/libopennsl_*.deb \
|
|
|
|
&& dpkg_apt /deps/libsaibcm_*.deb \
|
|
|
|
&& dpkg_apt /deps/libsairedis_*.deb \
|
|
|
|
&& dpkg_apt /deps/syncd_*.deb
|
2016-05-27 15:30:13 -05:00
|
|
|
|
|
|
|
## TODO: add kmod into Depends
|
|
|
|
RUN apt-get install -f kmod
|
|
|
|
|
2016-08-04 12:39:33 -05:00
|
|
|
COPY ["deps/dsserve", "deps/bcmcmd", "start.sh", "/usr/bin/"]
|
2016-07-26 14:01:58 -05:00
|
|
|
|
2016-05-27 15:30:13 -05:00
|
|
|
## Clean up
|
|
|
|
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
|
|
|
|
RUN rm -rf /deps
|
|
|
|
|
2016-09-09 19:53:41 -05:00
|
|
|
ENTRYPOINT ["/bin/bash"]
|
|
|
|
CMD ["/usr/bin/start.sh"]
|