b6753e7960
* [docker-config-engine]: introduce docker sonic config engine sonic config engine provide the sonic configure engine for all sonic dockers that rely on the engine to generate runtime configuration.
29 lines
594 B
Django/Jinja
29 lines
594 B
Django/Jinja
FROM docker-config-engine
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y libdbus-1-3 libdaemon0 libjansson4
|
|
|
|
COPY \
|
|
{% for deb in docker_fpm_debs.split(' ') -%}
|
|
debs/{{ deb }}{{' '}}
|
|
{%- endfor -%}
|
|
debs/
|
|
|
|
RUN dpkg -i \
|
|
{% for deb in docker_fpm_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 ["*.j2", "/etc/swss/bgp/"]
|
|
COPY ["start.sh", "config.sh", "/usr/bin/"]
|
|
COPY ["daemons", "/etc/quagga/"]
|
|
|
|
ENTRYPOINT /usr/bin/config.sh \
|
|
&& /usr/bin/start.sh \
|
|
&& /bin/bash
|