File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ $(DOCKER_SONIC_VS)_DEPENDS += $(SWSS) \
1313
1414$(DOCKER_SONIC_VS)_PYTHON_DEBS += $(SONIC_UTILS )
1515
16+ $(DOCKER_SONIC_VS)_PYTHON_WHEELS += $(SONIC_YANG_MODELS_PY3 )
17+ $(DOCKER_SONIC_VS)_PYTHON_WHEELS += $(SONIC_YANG_MGMT_PY )
18+
1619ifeq ($(INSTALL_DEBUG_TOOLS ) , y)
1720$(DOCKER_SONIC_VS)_DEPENDS += $(SWSS_DBG ) \
1821 $(LIBSWSSCOMMON_DBG ) \
Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ RUN apt-get install -y net-tools \
4444 tcpdump \
4545 python-scapy \
4646 conntrack \
47- iptables
47+ iptables \
48+ python3-pip
4849
4950RUN pip install setuptools
5051RUN pip install py2_ipaddress
@@ -76,6 +77,23 @@ RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return
7677{% - endfor %}
7778{% - endif %}
7879
80+ {% if docker_sonic_vs_whls .strip () %}
81+ # copy all whl PKGs first,
82+ {% for whl in docker_sonic_vs_whls .split (' ' ) -%}
83+ COPY python-wheels/{{ whl }} python-wheels/
84+ {% endfor %}
85+
86+ # install PKGs after copying all PKGs to avoid dependency failure
87+ # use py3 to find python3 package, which is forced by wheel as of now
88+ {% - for whl in docker_sonic_vs_whls .split (' ' ) %}
89+ {% - if 'py3' in whl %}
90+ RUN pip3 install python-wheels/{{ whl }}
91+ {% else -%}
92+ RUN pip install python-wheels/{{ whl }}
93+ {% - endif %}
94+ {% - endfor %}
95+ {% endif %}
96+
7997# Clean up
8098RUN apt-get clean -y
8199RUN apt-get autoclean -y
You can’t perform that action at this time.
0 commit comments