2021-10-17 11:03:02 -05:00
|
|
|
##
|
2022-03-23 06:19:25 -05:00
|
|
|
## Copyright (c) 2016-2022 NVIDIA CORPORATION & AFFILIATES.
|
2021-10-17 11:03:02 -05:00
|
|
|
## Apache-2.0
|
|
|
|
##
|
|
|
|
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
## you may not use this file except in compliance with the License.
|
|
|
|
## You may obtain a copy of the License at
|
|
|
|
##
|
|
|
|
## http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
##
|
|
|
|
## Unless required by applicable law or agreed to in writing, software
|
|
|
|
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
## See the License for the specific language governing permissions and
|
|
|
|
## limitations under the License.
|
|
|
|
##
|
2022-03-09 23:15:44 -06:00
|
|
|
{% from "dockers/dockerfile-macros.j2" import install_debian_packages %}
|
2022-05-10 04:45:28 -05:00
|
|
|
FROM docker-config-engine-bullseye-{{DOCKER_USERNAME}}:{{DOCKER_USERTAG}}
|
2018-11-14 03:15:31 -06:00
|
|
|
|
|
|
|
ARG docker_container_name
|
|
|
|
RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%syslogtag%/;" /etc/rsyslog.conf
|
|
|
|
|
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2022-03-09 23:15:44 -06:00
|
|
|
## Pre-install the fundamental packages
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get -y install \
|
|
|
|
gdb \
|
2022-08-26 00:51:53 -05:00
|
|
|
libboost-atomic1.74.0
|
2018-11-14 03:15:31 -06:00
|
|
|
|
|
|
|
COPY \
|
|
|
|
{% for deb in docker_saiserver_mlnx_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
|
|
|
|
2019-02-05 00:06:37 -06:00
|
|
|
COPY \
|
|
|
|
{% for deb in docker_saiserver_mlnx_pydebs.split(' ') -%}
|
|
|
|
python-debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
|
|
|
|
2022-05-10 04:45:28 -05:00
|
|
|
RUN apt-get install -y --no-install-recommends libxml2 iptables libbsd0 protobuf-c-compiler protobuf-compiler python3-protobuf libprotobuf-c1 python3-future python3-ipaddr libnet1 pkg-config asciidoc xmlto
|
2018-11-14 03:15:31 -06:00
|
|
|
|
2022-03-09 23:15:44 -06:00
|
|
|
{{ install_debian_packages(docker_saiserver_mlnx_debs.split(' ')) }}
|
2019-02-05 00:06:37 -06:00
|
|
|
|
2018-11-14 03:15:31 -06:00
|
|
|
COPY ["start.sh", "/usr/bin/"]
|
|
|
|
|
|
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
|
|
|
|
|
|
|
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 /debs
|
|
|
|
|
2020-11-22 23:18:44 -06:00
|
|
|
ENTRYPOINT ["/usr/local/bin/supervisord"]
|