2019-12-19 00:26:34 -06:00
|
|
|
{% from "dockers/dockerfile-macros.j2" import install_debian_packages %}
|
2020-12-17 14:46:45 -06:00
|
|
|
FROM docker-config-engine-buster
|
2016-12-14 13:59:24 -06:00
|
|
|
|
2018-06-25 12:48:42 -05:00
|
|
|
ARG docker_container_name
|
2018-09-11 16:57:29 -05:00
|
|
|
RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%syslogtag%/;" /etc/rsyslog.conf
|
2018-06-25 12:48:42 -05:00
|
|
|
|
2017-02-16 23:48:49 -06:00
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2016-12-14 13:59:24 -06:00
|
|
|
RUN apt-get update
|
|
|
|
|
2017-01-19 14:19:21 -06:00
|
|
|
COPY \
|
|
|
|
{% for deb in docker_syncd_brcm_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
2016-12-14 13:59:24 -06:00
|
|
|
|
2019-12-19 00:26:34 -06:00
|
|
|
# Install locally-built Debian packages and implicitly install their dependencies
|
|
|
|
{{ install_debian_packages(docker_syncd_brcm_debs.split(' ')) }}
|
2016-12-14 13:59:24 -06:00
|
|
|
|
|
|
|
## TODO: add kmod into Depends
|
2017-09-05 00:02:37 -05:00
|
|
|
RUN apt-get install -yf kmod
|
2016-12-14 13:59:24 -06:00
|
|
|
|
2020-05-16 10:43:23 -05:00
|
|
|
COPY ["files/dsserve", "files/bcmcmd", "start.sh", "start_led.sh", "bcmsh", "/usr/bin/"]
|
2017-01-09 16:34:14 -06:00
|
|
|
RUN chmod +x /usr/bin/dsserve /usr/bin/bcmcmd
|
2016-12-14 13:59:24 -06:00
|
|
|
|
2017-05-08 17:43:31 -05:00
|
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
2019-11-09 12:26:39 -06:00
|
|
|
COPY ["files/supervisor-proc-exit-listener", "/usr/bin"]
|
|
|
|
COPY ["critical_processes", "/etc/supervisor/"]
|
2017-05-08 17:43:31 -05:00
|
|
|
|
2016-12-14 13:59:24 -06:00
|
|
|
## Clean up
|
|
|
|
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
|
2016-12-23 17:22:06 -06:00
|
|
|
RUN rm -rf /debs
|
2016-12-14 13:59:24 -06:00
|
|
|
|
2020-11-22 23:18:44 -06:00
|
|
|
ENTRYPOINT ["/usr/local/bin/supervisord"]
|