4fe1bdcf87
Add a sonic-config-engine to help generate config file based on minigraph and other data on runtime. Modify fpm, teamd, lldp, snmp, and platform-monitor docker to use sonic-config-engine to generate config in docker upon load.
27 lines
792 B
Django/Jinja
27 lines
792 B
Django/Jinja
FROM docker-base
|
|
|
|
RUN apt-get update && apt-get install -f -y libdbus-1-3 libdaemon0 libjansson4
|
|
|
|
|
|
# Dependencies for sonic-cfggen
|
|
RUN apt-get install -y python-lxml python-jinja2 python-netaddr python-ipaddr python-yaml
|
|
|
|
COPY \
|
|
{% for deb in docker_teamd_debs.split(' ') -%}
|
|
debs/{{ deb }}{{' '}}
|
|
{%- endfor -%}
|
|
debs/
|
|
|
|
RUN dpkg -i \
|
|
{% for deb in docker_teamd_debs.split(' ') -%}
|
|
debs/{{ deb }}{{' '}}
|
|
{%- endfor %}
|
|
|
|
COPY ["start.sh", "config.sh", "/usr/bin/"]
|
|
COPY ["teamd.j2", "/etc/swss/teamd/"]
|
|
|
|
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
|
|
RUN rm -rf /debs
|
|
|
|
ENTRYPOINT /usr/bin/config.sh && /usr/bin/start.sh
|