2023-02-06 11:26:35 -06:00
|
|
|
FROM docker-config-engine-bullseye-{{DOCKER_USERNAME}}:{{DOCKER_USERTAG}}
|
2017-03-04 04:17:38 -06:00
|
|
|
|
2018-06-25 12:48:42 -05:00
|
|
|
ARG docker_container_name
|
2021-04-26 15:51:50 -05:00
|
|
|
|
2017-03-04 04:17:38 -06:00
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
COPY \
|
|
|
|
{% for deb in docker_syncd_centec_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
|
|
|
|
|
|
|
RUN dpkg -i \
|
|
|
|
{% for deb in docker_syncd_centec_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor %}
|
|
|
|
|
|
|
|
## TODO: add kmod into Depends
|
2020-04-17 02:38:48 -05:00
|
|
|
RUN apt-get install -yf kmod
|
2017-03-04 04:17:38 -06:00
|
|
|
|
2017-05-08 17:43:31 -05:00
|
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
2020-05-16 11:11:24 -05:00
|
|
|
COPY ["files/supervisor-proc-exit-listener", "/usr/bin/"]
|
2019-11-09 12:26:39 -06:00
|
|
|
COPY ["critical_processes", "/etc/supervisor/"]
|
2017-03-04 04:17:38 -06: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"]
|