146c88100b
* add saiserver docker for mlnx sn2700 platform
33 lines
1.2 KiB
Docker
Executable File
33 lines
1.2 KiB
Docker
Executable File
FROM docker-base
|
|
|
|
RUN apt-get update
|
|
|
|
COPY ["deps/applibs_*.deb", "/deps/applibs-dev_*.deb", "/deps/sx-complib_*.deb", "/deps/sxd-libs_*.deb", "/deps/sx-scew_*.deb", "/deps/sx-examples_*.deb", "/deps/sx-gen-utils_*.deb", "/deps/python-sdk-api_*.deb", "/deps/sx-libnl_*.deb", "/deps/iproute2_*.deb", "/deps/mlnx-sai_*.deb", "/deps/libthrift-0.9.2_*.deb", "/deps/"]
|
|
|
|
RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; }; \
|
|
dpkg_apt /deps/applibs_*.deb \
|
|
&& dpkg_apt /deps/applibs-dev_*.deb \
|
|
&& dpkg_apt /deps/sx-complib_*.deb \
|
|
&& dpkg_apt /deps/sxd-libs_*.deb \
|
|
&& dpkg_apt /deps/sx-scew_*.deb \
|
|
&& dpkg_apt /deps/sx-examples_*.deb \
|
|
&& dpkg_apt /deps/sx-gen-utils_*.deb \
|
|
&& dpkg_apt /deps/python-sdk-api_*.deb \
|
|
&& dpkg_apt /deps/sx-libnl_*.deb \
|
|
&& dpkg_apt /deps/iproute2_*.deb \
|
|
&& dpkg_apt /deps/mlnx-sai_*.deb \
|
|
&& dpkg_apt /deps/libthrift-0.9.2_*.deb
|
|
|
|
COPY ["deps/saiserver", "start.sh", "/usr/bin/"]
|
|
|
|
COPY ["profile.ini", "portmap.ini", "/etc/sai/"]
|
|
|
|
COPY ["sai_2700.xml", "/usr/share/"]
|
|
|
|
## Clean up
|
|
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
|
|
RUN rm -rf /deps
|
|
|
|
ENTRYPOINT ["/bin/bash"]
|
|
CMD ["/usr/bin/start.sh"]
|