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/quagga_*", "/deps/"]
|
|
|
|
|
2016-05-27 15:30:13 -05:00
|
|
|
## Get fpmsyncd
|
|
|
|
RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; }; dpkg_apt /deps/libhiredis0.13*.deb
|
|
|
|
RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; }; dpkg_apt /deps/libswsscommon_*.deb
|
|
|
|
|
|
|
|
## Get Quagga
|
|
|
|
RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; }; dpkg_apt /deps/quagga_*.deb
|
|
|
|
|
2016-10-07 12:41:44 -05:00
|
|
|
COPY ["deps/fpmsyncd", "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-07-26 14:01:58 -05:00
|
|
|
ENTRYPOINT /usr/bin/start.sh \
|
|
|
|
&& /bin/bash
|