2017-02-07 20:11:19 -06:00
|
|
|
FROM docker-base
|
|
|
|
|
2017-02-16 23:48:49 -06:00
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2017-02-07 20:11:19 -06:00
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
# Dependencies for sonic-cfggen
|
2017-03-17 16:51:42 -05:00
|
|
|
RUN apt-get install -y python-lxml python-yaml python-bitarray python-pip python-dev
|
2017-02-07 20:11:19 -06:00
|
|
|
|
2017-03-17 16:51:42 -05:00
|
|
|
RUN pip install --upgrade pip
|
|
|
|
|
2017-08-24 20:38:47 -05:00
|
|
|
RUN pip install netaddr ipaddr jinja2 pyangbind==0.5.10
|
2017-03-17 16:51:42 -05:00
|
|
|
|
|
|
|
{% if docker_config_engine_debs.strip() %}
|
2017-02-07 20:11:19 -06:00
|
|
|
COPY \
|
|
|
|
{% for deb in docker_config_engine_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
debs/
|
2017-03-17 16:51:42 -05:00
|
|
|
{%- endif -%}
|
2017-02-07 20:11:19 -06:00
|
|
|
|
2017-03-17 16:51:42 -05:00
|
|
|
{% if docker_config_engine_debs.strip() %}
|
2017-02-07 20:11:19 -06:00
|
|
|
RUN dpkg -i \
|
|
|
|
{% for deb in docker_config_engine_debs.split(' ') -%}
|
|
|
|
debs/{{ deb }}{{' '}}
|
|
|
|
{%- endfor %}
|
2017-03-17 16:51:42 -05:00
|
|
|
{%- endif -%}
|
|
|
|
|
|
|
|
{% if docker_config_engine_whls.strip() %}
|
|
|
|
COPY \
|
|
|
|
{% for whl in docker_config_engine_whls.split(' ') -%}
|
|
|
|
python-wheels/{{ whl }}{{' '}}
|
|
|
|
{%- endfor -%}
|
|
|
|
python-wheels/
|
|
|
|
{%- endif -%}
|
|
|
|
|
|
|
|
{% if docker_config_engine_whls.strip() %}
|
|
|
|
RUN pip install \
|
|
|
|
{% for whl in docker_config_engine_whls.split(' ') -%}
|
|
|
|
python-wheels/{{ whl }}{{' '}}
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif -%}
|
2017-02-07 20:11:19 -06:00
|
|
|
|
|
|
|
## Clean up
|
2017-03-17 16:51:42 -05:00
|
|
|
RUN apt-get remove -y python-pip python-dev; apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
|
|
|
|
RUN rm -rf /debs /python-wheels
|