2016-12-05 13:12:19 -06:00
|
|
|
FROM docker-base
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -f -y libdbus-1-3 libdaemon0 libjansson4
|
|
|
|
|
2017-01-19 22:56:26 -06:00
|
|
|
|
|
|
|
# Dependencies for sonic-cfggen
|
|
|
|
RUN apt-get install -y python-lxml python-jinja2 python-netaddr python-ipaddr python-yaml
|
|
|
|
|
2017-01-19 14:19:21 -06:00
|
|
|
COPY \
|
|
|
|
{% for deb in docker_teamd_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 \
|
2016-12-30 15:34:38 -06:00
|
|
|
{% for deb in docker_teamd_debs.split(' ') -%}
|
2016-12-23 17:22:06 -06:00
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor %}
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2017-01-19 22:56:26 -06:00
|
|
|
COPY ["start.sh", "config.sh", "/usr/bin/"]
|
|
|
|
COPY ["teamd.j2", "/etc/swss/teamd/"]
|
2016-12-05 13:12:19 -06:00
|
|
|
|
|
|
|
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-01-19 22:56:26 -06:00
|
|
|
ENTRYPOINT /usr/bin/config.sh && /usr/bin/start.sh
|