2022-04-27 19:39:37 -05:00
|
|
|
FROM docker-config-engine-buster-{{DOCKER_USERNAME}}:{{DOCKER_USERTAG}}
|
2018-11-21 00:32:40 -06:00
|
|
|
|
|
|
|
ARG docker_container_name
|
2021-04-26 15:51:50 -05:00
|
|
|
|
2018-11-21 00:32:40 -06:00
|
|
|
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
|
|
|
|
|
2021-11-25 07:38:17 -06:00
|
|
|
RUN apt-get install -f -y libcap2-bin
|
2019-09-14 22:27:09 -05:00
|
|
|
|
2018-11-21 00:32:40 -06:00
|
|
|
COPY \
|
|
|
|
{% for deb in docker_syncd_vs_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
|
|
|
|
|
|
|
RUN dpkg -i \
|
|
|
|
{% for deb in docker_syncd_vs_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
2021-11-25 07:38:17 -06:00
|
|
|
{%- endfor %} || apt-get install -f -y
|
2018-11-21 00:32:40 -06:00
|
|
|
|
|
|
|
COPY ["start.sh", "/usr/bin/"]
|
|
|
|
|
|
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
2020-03-31 17:00:48 -05:00
|
|
|
COPY ["files/supervisor-proc-exit-listener", "/usr/bin"]
|
|
|
|
COPY ["critical_processes", "/etc/supervisor/"]
|
2018-11-21 00:32:40 -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"]
|