Skip to content

Commit

Permalink
[swsssdk]: Update nomenclature: 'sswsdk' -> 'swsssdk' (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
jleveque authored Mar 30, 2017
1 parent 94934f7 commit 71d299b
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 34 deletions.
8 changes: 4 additions & 4 deletions dockers/docker-lldp-sv2/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y python-pip supervisor libbsd0 libevent-2.0-5 libjansson4 libwrap0 libxml2 libpci3 libperl5.20

## Pre-install the fundamental packages
## Install Python SSWSDK
## Install LLDP Sync Daemon
# Pre-install the fundamental packages
# Install Python SwSS SDK
# Install LLDP Sync Daemon

RUN dpkg -i \
{% for deb in docker_lldp_sv2_debs.split(' ') -%}
debs/{{ deb }}{{' '}}
{%- endfor %}

RUN pip install /python-wheels/sswsdk-2.0.1-py2-none-any.whl && \
RUN pip install /python-wheels/swsssdk-2.0.1-py2-none-any.whl && \
pip install /python-wheels/sonic_d-2.0.0-py2-none-any.whl && \
apt-get remove -y python-pip && \
apt-get purge -y && apt-get autoclean -y && apt-get autoremove -y && \
Expand Down
16 changes: 8 additions & 8 deletions dockers/docker-lldp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
FROM docker-base

COPY deps/sswsdk*.whl deps/lldpsyncd_*.deb deps/lldpd_*.deb /deps/
COPY deps/swsssdk*.whl deps/lldpsyncd_*.deb deps/lldpd_*.deb /deps/

## Make apt-get non-interactive
# Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive

## Pre-install the fundamental packages
## Install Python SSWSDK (lldpsyncd dependency)
## Install LLDP Sync Daemon
## Note: dpkg_apt function has the benefit to detect missing .deb file
## Clean up
# Pre-install the fundamental packages
# Install Python SwSS SDK (lldpsyncd dependency)
# Install LLDP Sync Daemon
# Note: dpkg_apt function has the benefit to detect missing .deb file
# Clean up
RUN apt-get update && \
dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; } && \
dpkg_apt /deps/lldpd_*.deb && \
dpkg_apt /deps/lldpsyncd_*.deb && \
apt-get install -y python-pip supervisor && \
pip install /deps/sswsdk*.whl && \
pip install /deps/swsssdk*.whl && \
apt-get remove -y python-pip && \
apt-get purge -y && apt-get autoclean -y && apt-get autoremove -y && \
rm -rf /deps ~/.cache
Expand Down
3 changes: 2 additions & 1 deletion dockers/docker-snmp-sv2/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ COPY [ \
{%- endfor %} \
"/debs/"]

COPY python-wheels/sswsdk-*-py3-*.whl /python-wheels/
# Install Python SwSSSDK (SNMP subagent dependency)
COPY python-wheels/swsssdk-*-py3-*.whl /python-wheels/
COPY python-wheels/asyncsnmp-*-py3-*.whl /python-wheels/

# enable -O for all Python calls
Expand Down
1 change: 0 additions & 1 deletion dockers/docker-snmp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ ENV PYTHONOPTIMIZE 1
ENV DEBIAN_FRONTEND=noninteractive

## Pre-install the fundamental packages
## Install Python SSWSDK (SNMP subagent dependency)
## Install SNMP subagent
## Note: dpkg_apt function has the benefit to detect missing .deb file
## Clean up
Expand Down
2 changes: 1 addition & 1 deletion rules/asyncsnmp-py3.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
ASYNCSNMP_PY3 = asyncsnmp-2.1.0-py3-none-any.whl
$(ASYNCSNMP_PY3)_SRC_PATH = $(SRC_PATH)/sonic-snmpagent
$(ASYNCSNMP_PY3)_PYTHON_VERSION = 3
$(ASYNCSNMP_PY3)_DEPENDS += $(SSWSDK_PY3)
$(ASYNCSNMP_PY3)_DEPENDS += $(SWSSSDK_PY3)
SONIC_PYTHON_WHEELS += $(ASYNCSNMP_PY3)
2 changes: 1 addition & 1 deletion rules/dbsyncd-py2.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
DBSYNCD_PY2 = sonic_d-2.0.0-py2-none-any.whl
$(DBSYNCD_PY2)_SRC_PATH = $(SRC_PATH)/sonic-dbsyncd
$(DBSYNCD_PY2)_PYTHON_VERSION = 2
$(DBSYNCD_PY2)_DEPENDS += $(SSWSDK_PY2)
$(DBSYNCD_PY2)_DEPENDS += $(SWSSSDK_PY2)
SONIC_PYTHON_WHEELS += $(DBSYNCD_PY2)
6 changes: 0 additions & 6 deletions rules/sswsdk-py2.mk

This file was deleted.

8 changes: 0 additions & 8 deletions rules/sswsdk-py3.mk

This file was deleted.

6 changes: 6 additions & 0 deletions rules/swsssdk-py2.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# swsssdk python2 wheel

SWSSSDK_PY2 = swsssdk-2.0.1-py2-none-any.whl
$(SWSSSDK_PY2)_SRC_PATH = $(SRC_PATH)/sonic-py-swsssdk
$(SWSSSDK_PY2)_PYTHON_VERSION = 2
SONIC_PYTHON_WHEELS += $(SWSSSDK_PY2)
8 changes: 8 additions & 0 deletions rules/swsssdk-py3.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# swsssdk python3 wheel

SWSSSDK_PY3 = swsssdk-2.0.1-py3-none-any.whl
$(SWSSSDK_PY3)_SRC_PATH = $(SRC_PATH)/sonic-py-swsssdk
$(SWSSSDK_PY3)_PYTHON_VERSION = 3
# Synthetic dependency just to avoid race condition
$(SWSSSDK_PY3)_DEPENDS += $(SWSSSDK_PY2)
SONIC_PYTHON_WHEELS += $(SWSSSDK_PY3)
2 changes: 1 addition & 1 deletion src/sonic-dbsyncd
2 changes: 1 addition & 1 deletion src/sonic-py-swsssdk
2 changes: 1 addition & 1 deletion src/sonic-snmpagent
2 changes: 1 addition & 1 deletion src/sonic-utilities

0 comments on commit 71d299b

Please sign in to comment.