2021-11-04 09:44:33 -05:00
|
|
|
{% from "dockers/dockerfile-macros.j2" import install_debian_packages %}
|
2022-04-27 19:39:37 -05:00
|
|
|
FROM docker-config-engine-buster-{{DOCKER_USERNAME}}:{{DOCKER_USERTAG}}
|
2017-08-19 03:57:36 -05:00
|
|
|
|
2018-06-25 12:48:42 -05:00
|
|
|
ARG docker_container_name
|
2021-04-26 15:51:50 -05:00
|
|
|
|
2017-08-19 03:57:36 -05:00
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
COPY \
|
|
|
|
{% for deb in docker_syncd_mrvl_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
|
|
|
|
2021-11-04 09:44:33 -05:00
|
|
|
RUN apt-get -y install libpcap-dev libxml2-dev python-dev swig libsensors4-dev libatomic1 liblua5.1-0 lua-bitop lua-cjson nfs-common
|
2017-08-19 03:57:36 -05:00
|
|
|
|
|
|
|
RUN dpkg -i \
|
|
|
|
{% for deb in docker_syncd_mrvl_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor %}
|
|
|
|
|
2020-05-16 11:17:37 -05:00
|
|
|
COPY ["syncd.sh", "/usr/bin/"]
|
2017-08-19 03:57:36 -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-08-19 03:57:36 -05:00
|
|
|
|
|
|
|
## 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"]
|