Skip to content

Commit

Permalink
Install python3.6 smbus module in snmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Staphylo committed Apr 15, 2019
1 parent 8bf9247 commit 53b83d1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dockers/docker-snmp-sv2/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN apt-get update
RUN apt-get install -y curl ca-certificates

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

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

# Install smbus dependency for use by some plugins
RUN python3.6 -m pip install --no-cache-dir smbus

{% if docker_snmp_sv2_whls.strip() -%}
# Copy locally-built Python wheel dependencies
{%- for whl in docker_snmp_sv2_whls.split(' ') %}
Expand All @@ -53,7 +56,7 @@ RUN pip install /python-wheels/{{ whl }}
RUN python3.6 -m sonic_ax_impl install

# Clean up
RUN apt-get -y purge libpython3.6-dev curl gcc
RUN apt-get -y purge libpython3.6-dev curl gcc make
RUN apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y --purge
RUN find / | grep -E "__pycache__" | xargs rm -rf
RUN rm -rf /debs /python-wheels ~/.cache
Expand Down

0 comments on commit 53b83d1

Please sign in to comment.