2016-05-27 15:30:13 -05:00
|
|
|
FROM docker-base
|
2016-03-08 13:42:20 -06:00
|
|
|
|
2016-07-26 14:01:58 -05:00
|
|
|
COPY \
|
|
|
|
deps/python-tabulate_*.deb \
|
|
|
|
deps/libopennsl_*.deb \
|
|
|
|
deps/libsaibcm_*.deb \
|
|
|
|
deps/libsswsdk_*.deb \
|
|
|
|
deps/sswsyncd_*.deb \
|
|
|
|
/deps/
|
2016-03-08 13:42:20 -06:00
|
|
|
|
2017-02-16 23:48:49 -06:00
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2016-07-26 14:01:58 -05:00
|
|
|
## Install packages
|
2016-05-27 15:30:13 -05:00
|
|
|
## Clean up
|
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/python-tabulate_*.deb && \
|
|
|
|
dpkg_apt /deps/libopennsl_*.deb && \
|
|
|
|
dpkg_apt /deps/libsaibcm_*.deb && \
|
|
|
|
dpkg_apt /deps/libsswsdk_*.deb && \
|
|
|
|
dpkg_apt /deps/sswsyncd_*.deb && \
|
|
|
|
apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y && \
|
|
|
|
rm -rf /deps
|
2016-05-27 15:30:13 -05:00
|
|
|
|
2016-03-08 13:42:20 -06:00
|
|
|
ENTRYPOINT service rsyslog start \
|
|
|
|
&& service sswsyncd start \
|
|
|
|
&& /bin/bash
|