[202012][saiserver docker]adds saiserver dependences (#8447)
Co-authored-by: richardyu-ms <richard.yu@microsoft.com>
This commit is contained in:
parent
a4405f09ed
commit
f963bc94d4
@ -1,3 +1,4 @@
|
|||||||
|
{% from "dockers/dockerfile-macros.j2" import install_debian_packages %}
|
||||||
FROM docker-config-engine-buster
|
FROM docker-config-engine-buster
|
||||||
|
|
||||||
ARG docker_container_name
|
ARG docker_container_name
|
||||||
@ -6,7 +7,11 @@ RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%s
|
|||||||
## Make apt-get non-interactive
|
## Make apt-get non-interactive
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
RUN apt-get update
|
## Pre-install the fundamental packages
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get -y install \
|
||||||
|
gdb \
|
||||||
|
libboost-atomic1.71.0
|
||||||
|
|
||||||
COPY \
|
COPY \
|
||||||
{% for deb in docker_saiserver_brcm_debs.split(' ') -%}
|
{% for deb in docker_saiserver_brcm_debs.split(' ') -%}
|
||||||
@ -14,10 +19,8 @@ debs/{{ deb }}{{' '}}
|
|||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
debs/
|
debs/
|
||||||
|
|
||||||
RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; } ; \
|
# Install locally-built Debian packages and implicitly install their dependencies
|
||||||
{% for deb in docker_saiserver_brcm_debs.split(' ') -%}
|
{{ install_debian_packages(docker_saiserver_brcm_debs.split(' ')) }}
|
||||||
dpkg_apt debs/{{ deb }}{{'; '}}
|
|
||||||
{%- endfor %}
|
|
||||||
|
|
||||||
## TODO: add kmod into Depends
|
## TODO: add kmod into Depends
|
||||||
RUN apt-get install -yf kmod
|
RUN apt-get install -yf kmod
|
||||||
|
@ -20,7 +20,7 @@ stdout_logfile=syslog
|
|||||||
stderr_logfile=syslog
|
stderr_logfile=syslog
|
||||||
|
|
||||||
[program:saiserver]
|
[program:saiserver]
|
||||||
command=/usr/bin/saiserver -p /etc/sai/profile.ini -f /etc/sai/portmap.ini
|
command=/usr/sbin/saiserver -p /etc/sai/profile.ini -f /etc/sai/portmap.ini
|
||||||
priority=3
|
priority=3
|
||||||
autostart=false
|
autostart=false
|
||||||
autorestart=false
|
autorestart=false
|
||||||
|
Reference in New Issue
Block a user