2016-10-27 20:02:32 -05:00
|
|
|
FROM docker-base
|
|
|
|
|
2017-02-16 23:48:49 -06:00
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2016-10-27 20:02:32 -05:00
|
|
|
RUN apt-get update
|
|
|
|
|
2016-10-28 17:16:08 -05:00
|
|
|
COPY ["deps/libsaibcm_*.deb","deps/libopennsl_*.deb","deps/python-sdk-api_*.deb", "deps/iproute2_*.deb", "deps/libthrift-0.9.3_*.deb", "deps/libnl-3-200_*.deb", "deps/libnl-genl-3-200_*.deb", "deps/libnl-route-3-200_*.deb", "/deps/"]
|
2016-10-27 20:02:32 -05:00
|
|
|
|
|
|
|
RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; }; \
|
|
|
|
dpkg_apt /deps/libopennsl_*.deb \
|
|
|
|
&& dpkg_apt /deps/libsaibcm_*.deb \
|
|
|
|
&& dpkg_apt /deps/libthrift-0.9.3_*.deb \
|
|
|
|
&& dpkg_apt /deps/libnl-3-200_*.deb \
|
|
|
|
&& dpkg_apt /deps/libnl-genl-3-200_*.deb \
|
|
|
|
&& dpkg_apt /deps/libnl-route-3-200_*.deb
|
|
|
|
|
|
|
|
COPY ["deps/saiserver", "start.sh", "/usr/bin/"]
|
|
|
|
|
2017-05-08 17:43:31 -05:00
|
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
|
|
|
|
2016-10-27 20:02:32 -05:00
|
|
|
COPY ["profile.ini", "portmap.ini", "/etc/sai/"]
|
|
|
|
|
|
|
|
## Clean up
|
2016-10-28 17:16:08 -05:00
|
|
|
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y; rm -rf /deps
|
2016-10-27 20:02:32 -05:00
|
|
|
|
2017-05-08 17:43:31 -05:00
|
|
|
ENTRYPOINT ["/usr/bin/supervisord"]
|