Skip to content

Commit 53b83d1

Browse files
committed
Install python3.6 smbus module in snmp
1 parent 8bf9247 commit 53b83d1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dockers/docker-snmp-sv2/Dockerfile.j2

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN apt-get update
1717
RUN apt-get install -y curl ca-certificates
1818

1919
# Install gcc which is required for installing hiredis
20-
RUN apt-get install -y gcc
20+
RUN apt-get install -y gcc make
2121

2222
{% if docker_snmp_sv2_debs.strip() -%}
2323
# Copy locally-built Debian package dependencies
@@ -38,6 +38,9 @@ RUN python3.6 -m pip install --no-cache-dir hiredis
3838
# Install pyyaml dependency for use by some plugins
3939
RUN python3.6 -m pip install --no-cache-dir pyyaml
4040

41+
# Install smbus dependency for use by some plugins
42+
RUN python3.6 -m pip install --no-cache-dir smbus
43+
4144
{% if docker_snmp_sv2_whls.strip() -%}
4245
# Copy locally-built Python wheel dependencies
4346
{%- for whl in docker_snmp_sv2_whls.split(' ') %}
@@ -53,7 +56,7 @@ RUN pip install /python-wheels/{{ whl }}
5356
RUN python3.6 -m sonic_ax_impl install
5457

5558
# Clean up
56-
RUN apt-get -y purge libpython3.6-dev curl gcc
59+
RUN apt-get -y purge libpython3.6-dev curl gcc make
5760
RUN apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y --purge
5861
RUN find / | grep -E "__pycache__" | xargs rm -rf
5962
RUN rm -rf /debs /python-wheels ~/.cache

0 commit comments

Comments
 (0)