2019-04-29 20:25:40 -05:00
|
|
|
FROM docker-config-engine-stretch
|
2017-12-22 12:04:29 -06:00
|
|
|
|
2018-06-25 12:48:42 -05:00
|
|
|
ARG docker_container_name
|
2021-04-26 15:51:50 -05:00
|
|
|
|
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-12-22 12:04:29 -06:00
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
COPY \
|
|
|
|
{% for deb in docker_syncd_nephos_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
|
|
|
|
2019-04-29 20:25:40 -05:00
|
|
|
COPY \
|
|
|
|
{% for deb in docker_syncd_nephos_pydebs.split(' ') -%}
|
|
|
|
python-debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
|
|
|
|
|
|
|
RUN apt-get install -y libxml2
|
|
|
|
|
2017-12-22 12:04:29 -06:00
|
|
|
RUN dpkg -i \
|
|
|
|
{% for deb in docker_syncd_nephos_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor %}
|
|
|
|
|
2019-04-29 20:25:40 -05:00
|
|
|
##RUN dpkg -i \
|
|
|
|
##{% for deb in docker_syncd_nephos_pydebs.split(' ') -%}
|
|
|
|
##debs/{{ deb }}{{' '}}
|
|
|
|
##{%- endfor %}
|
2017-12-22 12:04:29 -06:00
|
|
|
|
2020-05-16 11:21:25 -05:00
|
|
|
COPY ["files/dsserve", "files/npx_diag", "/usr/bin/"]
|
2019-10-31 11:13:35 -05:00
|
|
|
RUN chmod +x /usr/bin/npx_diag /usr/bin/dsserve
|
|
|
|
|
2017-12-22 12:04:29 -06: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-12-22 12:04:29 -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"]
|