2016-12-14 13:59:24 -06:00
|
|
|
FROM docker-base
|
|
|
|
|
2017-02-16 23:48:49 -06:00
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2016-12-14 13:59:24 -06:00
|
|
|
RUN apt-get update
|
|
|
|
|
2017-01-19 14:19:21 -06:00
|
|
|
COPY \
|
|
|
|
{% for deb in docker_syncd_brcm_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
2016-12-14 13:59:24 -06:00
|
|
|
|
2016-12-23 17:22:06 -06:00
|
|
|
RUN dpkg -i \
|
|
|
|
{% for deb in docker_syncd_brcm_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor %}
|
2016-12-14 13:59:24 -06:00
|
|
|
|
|
|
|
## TODO: add kmod into Depends
|
|
|
|
RUN apt-get install -f kmod
|
|
|
|
|
2016-12-23 17:22:06 -06:00
|
|
|
COPY ["debs/dsserve", "debs/bcmcmd", "start.sh", "/usr/bin/"]
|
2017-01-09 16:34:14 -06:00
|
|
|
RUN chmod +x /usr/bin/dsserve /usr/bin/bcmcmd
|
2016-12-14 13:59:24 -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-14 13:59:24 -06:00
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/bash"]
|
|
|
|
CMD ["/usr/bin/start.sh"]
|