2021-08-12 11:30:43 -05:00
|
|
|
{% from "dockers/dockerfile-macros.j2" import install_debian_packages %}
|
2020-12-17 14:46:45 -06:00
|
|
|
FROM docker-config-engine-buster
|
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
|
|
|
|
|
2021-08-12 11:30:43 -05:00
|
|
|
## Pre-install the fundamental packages
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get -y install \
|
|
|
|
gdb \
|
|
|
|
libboost-atomic1.71.0
|
2018-11-14 03:15:31 -06:00
|
|
|
|
|
|
|
COPY \
|
|
|
|
{% for deb in docker_saiserver_brcm_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
|
|
|
|
2021-08-12 11:30:43 -05:00
|
|
|
# Install locally-built Debian packages and implicitly install their dependencies
|
|
|
|
{{ install_debian_packages(docker_saiserver_brcm_debs.split(' ')) }}
|
2018-11-14 03:15:31 -06:00
|
|
|
|
|
|
|
## TODO: add kmod into Depends
|
|
|
|
RUN apt-get install -yf kmod
|
|
|
|
|
|
|
|
COPY ["files/dsserve", "files/bcmcmd", "start.sh", "bcmsh", "/usr/bin/"]
|
|
|
|
RUN chmod +x /usr/bin/dsserve /usr/bin/bcmcmd
|
|
|
|
|
|
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
|
|
|
|
|
|
|
## 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"]
|