2020-06-09 11:07:25 -05:00
|
|
|
FROM docker-config-engine-buster
|
2018-11-21 00:32:40 -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
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
2020-06-09 11:07:25 -05:00
|
|
|
RUN apt-get install -f -y iproute2=4.20.0-2 libcap2-bin=1:2.25-2
|
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 }}{{' '}}
|
|
|
|
{%- endfor %}
|
|
|
|
|
|
|
|
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"]
|