2023-03-22 16:51:25 -05:00
|
|
|
{% from "dockers/dockerfile-macros.j2" import install_debian_packages, install_python_wheels, copy_files, cleanup_apt_and_python_cache %}
|
2022-07-27 20:21:22 -05:00
|
|
|
FROM docker-swss-layer-bullseye-{{DOCKER_USERNAME}}:{{DOCKER_USERTAG}}
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2018-06-25 12:48:42 -05:00
|
|
|
ARG docker_container_name
|
2018-08-13 00:23:58 -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-05-08 17:43:31 -05:00
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2020-04-05 15:29:34 -05:00
|
|
|
RUN apt-get update
|
2019-06-22 13:26:23 -05:00
|
|
|
|
|
|
|
{% if docker_teamd_debs.strip() -%}
|
|
|
|
# Copy locally-built Debian package dependencies
|
|
|
|
{{ copy_files("debs/", docker_teamd_debs.split(' '), "/debs/") }}
|
|
|
|
|
|
|
|
# Install locally-built Debian packages and implicitly install their dependencies
|
|
|
|
{{ install_debian_packages(docker_teamd_debs.split(' ')) }}
|
|
|
|
{%- endif %}
|
|
|
|
|
2023-03-22 16:51:25 -05:00
|
|
|
{{ cleanup_apt_and_python_cache() }}
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2018-10-19 05:41:53 -05:00
|
|
|
COPY ["start.sh", "/usr/bin/"]
|
2017-11-16 12:30:41 -06:00
|
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
2019-11-04 19:45:41 -06:00
|
|
|
COPY ["files/supervisor-proc-exit-listener", "/usr/bin"]
|
|
|
|
COPY ["critical_processes", "/etc/supervisor"]
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2020-11-22 23:18:44 -06:00
|
|
|
ENTRYPOINT ["/usr/local/bin/supervisord"]
|