a845740543
Add noninteractive setting into every Dockerfile in the repo Signed-off-by: Pavel Shirshov pavelsh@microsoft.com
38 lines
1.5 KiB
Docker
Executable File
38 lines
1.5 KiB
Docker
Executable File
FROM docker-base
|
|
|
|
## Make apt-get non-interactive
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
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/iproute2_*.deb", "/deps/mlnx-sai_*.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/"]
|
|
|
|
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/iproute2_*.deb \
|
|
&& dpkg_apt /deps/mlnx-sai_*.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/"]
|
|
|
|
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"]
|