2017-02-07 20:11:19 -06:00
|
|
|
FROM docker-config-engine
|
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-02-16 23:48:49 -06:00
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2016-12-05 13:12:19 -06:00
|
|
|
RUN apt-get update
|
|
|
|
|
2018-11-09 19:06:09 -06:00
|
|
|
RUN apt-get install -f -y ifupdown arping libdbus-1-3 libdaemon0 libjansson4 libpython2.7
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2018-11-09 19:06:09 -06:00
|
|
|
RUN apt-get install -f -y ndisc6 tcpdump python-scapy
|
2016-12-15 18:48:22 -06:00
|
|
|
|
2018-09-16 19:10:03 -05:00
|
|
|
RUN apt-get install -y libelf1 libmnl0
|
|
|
|
|
2018-11-09 19:06:09 -06:00
|
|
|
RUN pip install setuptools
|
|
|
|
RUN pip install pyroute2==0.5.3 netifaces==0.10.7
|
|
|
|
RUN pip install monotonic==1.5
|
|
|
|
|
2017-01-19 14:19:21 -06:00
|
|
|
COPY \
|
|
|
|
{% for deb in docker_orchagent_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2016-12-23 17:22:06 -06:00
|
|
|
RUN dpkg -i \
|
|
|
|
{% for deb in docker_orchagent_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor %}
|
2016-12-05 13:12:19 -06:00
|
|
|
|
|
|
|
## Clean up
|
|
|
|
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
|
2016-12-23 17:22:06 -06:00
|
|
|
RUN rm -rf /debs
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2017-11-30 16:59:25 -06:00
|
|
|
COPY ["files/arp_update", "/usr/bin"]
|
2018-07-26 15:39:08 -05:00
|
|
|
COPY ["enable_counters.py", "/usr/bin"]
|
2017-11-30 16:59:25 -06:00
|
|
|
COPY ["start.sh", "orchagent.sh", "swssconfig.sh", "/usr/bin/"]
|
2017-05-08 17:43:31 -05:00
|
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
2019-07-29 20:10:26 -05:00
|
|
|
COPY ["files/supervisor-proc-exit-listener", "/usr/bin"]
|
|
|
|
COPY ["critical_processes", "/etc/supervisor/"]
|
2017-10-29 13:50:57 -05:00
|
|
|
|
|
|
|
## Copy all Jinja2 template files into the templates folder
|
|
|
|
COPY ["*.j2", "/usr/share/sonic/templates/"]
|
2017-05-08 17:43:31 -05:00
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/supervisord"]
|