Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[swsssdk]: Update nomenclature: 'sswsdk' -> 'swsssdk' #445

Merged
merged 4 commits into from
Mar 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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