b28dd1db7b
- Port changes #3741
47 lines
1.3 KiB
Django/Jinja
Executable File
47 lines
1.3 KiB
Django/Jinja
Executable File
FROM docker-config-engine
|
|
|
|
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
|
|
|
|
RUN apt-get install -f -y ifupdown arping libdbus-1-3 libdaemon0 libjansson4 libpython2.7
|
|
|
|
RUN apt-get install -f -y ndisc6 tcpdump python-scapy
|
|
|
|
RUN apt-get install -y libelf1 libmnl0
|
|
|
|
RUN pip install setuptools
|
|
RUN pip install pyroute2==0.5.3 netifaces==0.10.7
|
|
RUN pip install monotonic==1.5
|
|
|
|
COPY \
|
|
{% for deb in docker_orchagent_debs.split(' ') -%}
|
|
debs/{{ deb }}{{' '}}
|
|
{%- endfor -%}
|
|
debs/
|
|
|
|
RUN dpkg -i \
|
|
{% for deb in docker_orchagent_debs.split(' ') -%}
|
|
debs/{{ deb }}{{' '}}
|
|
{%- endfor %}
|
|
|
|
## Clean up
|
|
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
|
|
RUN rm -rf /debs
|
|
|
|
COPY ["files/arp_update", "/usr/bin"]
|
|
COPY ["enable_counters.py", "/usr/bin"]
|
|
COPY ["start.sh", "orchagent.sh", "swssconfig.sh", "/usr/bin/"]
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
|
COPY ["files/supervisor-proc-exit-listener", "/usr/bin"]
|
|
COPY ["critical_processes", "/etc/supervisor/"]
|
|
|
|
## Copy all Jinja2 template files into the templates folder
|
|
COPY ["*.j2", "/usr/share/sonic/templates/"]
|
|
|
|
ENTRYPOINT ["/usr/bin/supervisord"]
|