2019-06-08 18:27:19 -05:00
|
|
|
FROM docker-config-engine-stretch
|
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
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
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/
|
|
|
|
|
2018-11-14 03:15:31 -06:00
|
|
|
RUN apt-get install -y --no-install-recommends libxml2 iptables libbsd0 protobuf-c-compiler protobuf-compiler python-protobuf libprotobuf-c1 python-future python-ipaddr libnet1 pkg-config asciidoc xmlto
|
|
|
|
|
|
|
|
RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; } ; \
|
|
|
|
{% for deb in docker_saiserver_mlnx_debs.split(' ') -%}
|
|
|
|
dpkg_apt debs/{{ deb }}{{'; '}}
|
|
|
|
{%- endfor %}
|
|
|
|
|
2019-02-05 00:06:37 -06:00
|
|
|
RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; } ; \
|
|
|
|
{% for deb in docker_saiserver_mlnx_pydebs.split(' ') -%}
|
|
|
|
dpkg_apt debs/{{ deb }}{{'; '}}
|
|
|
|
{%- endfor %}
|
|
|
|
|
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"]
|