2022-04-27 19:39:37 -05:00
|
|
|
FROM docker-config-engine-stretch-{{DOCKER_USERNAME}}:{{DOCKER_USERTAG}}
|
2019-08-14 12:40:55 -05:00
|
|
|
|
|
|
|
ARG docker_container_name
|
|
|
|
|
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
COPY \
|
|
|
|
{% for deb in docker_syncd_invm_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
|
|
|
|
|
|
|
# Needed for Innovium Debug Shell
|
|
|
|
RUN apt-get install -y net-tools
|
|
|
|
RUN apt-get install -y libpython2.7
|
|
|
|
RUN apt-get install -y libjansson4
|
|
|
|
|
|
|
|
RUN dpkg -i \
|
|
|
|
{% for deb in docker_syncd_invm_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor %}
|
|
|
|
|
2022-07-27 12:01:50 -05:00
|
|
|
COPY ["start.sh", "/usr/bin/"]
|
|
|
|
COPY ["ivm_start.sh", "/usr/bin/"]
|
2019-08-14 12:40:55 -05:00
|
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
2022-07-27 12:01:50 -05:00
|
|
|
COPY ["files/supervisor-proc-exit-listener", "/usr/bin"]
|
|
|
|
COPY ["critical_processes", "/etc/supervisor/"]
|
2019-08-14 12:40:55 -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"]
|