-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build orchagent and syncd docker on broadcom platform (#118)
* build orchagent and syncd docker on broadcom platform
- Loading branch information
Showing
9 changed files
with
87 additions
and
53 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# docker image for orchagent | ||
|
||
DOCKER_ORCHAGENT_BRCM = docker-orchagent-brcm.gz | ||
$(DOCKER_ORCHAGENT_BRCM)_PATH = $(DOCKERS_PATH)/docker-orchagent | ||
$(DOCKER_ORCHAGENT_BRCM)_DEPENDS += $(SWSS) $(REDIS_TOOLS) | ||
$(DOCKER_ORCHAGENT_BRCM)_LOAD_DOCKERS += $(DOCKER_BASE) | ||
SONIC_DOCKER_IMAGES += $(DOCKER_ORCHAGENT_BRCM) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# docker image for brcm syncd | ||
|
||
DOCKER_SYNCD_BRCM = docker-syncd-brcm.gz | ||
$(DOCKER_SYNCD_BRCM)_PATH = $(PLATFORM_PATH)/docker-syncd-brcm | ||
$(DOCKER_SYNCD_BRCM)_DEPENDS += $(SYNCD) | ||
$(DOCKER_SYNCD_BRCM)_FILES += $(BRCM_DSSERVE) $(BRCM_BCMCMD) | ||
$(DOCKER_SYNCD_BRCM)_LOAD_DOCKERS += $(DOCKER_BASE) | ||
SONIC_DOCKER_IMAGES += $(DOCKER_SYNCD_BRCM) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM docker-base | ||
|
||
RUN apt-get update | ||
|
||
COPY deps /deps | ||
|
||
SED_DPKG | ||
|
||
## TODO: add kmod into Depends | ||
RUN apt-get install -f kmod | ||
|
||
COPY ["deps/dsserve", "deps/bcmcmd", "start.sh", "/usr/bin/"] | ||
|
||
## Clean up | ||
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y | ||
RUN rm -rf /deps | ||
|
||
ENTRYPOINT ["/bin/bash"] | ||
CMD ["/usr/bin/start.sh"] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
OPENNSL = libopennsl_6.4.11-1+0~20160719212144.23~1.gbp8ec2d1_amd64.deb | ||
$(OPENNSL)_PATH = $(PLATFORM_PATH)/brcm_sdk | ||
BRCM_SAI = libsaibcm_1.0.2~20160727172452.52_amd64.deb | ||
$(BRCM_SAI)_PATH = $(PLATFORM_PATH)/brcm_sdk | ||
BRCM_SAI_DBG = libsaibcm-dbg_1.0.2~20160727172452.52_amd64.deb | ||
$(BRCM_SAI_DEV)_PATH = $(PLATFORM_PATH)/brcm_sdk | ||
BRCM_SAI_DEV = libsaibcm-dev_1.0.2~20160727172452.52_amd64.deb | ||
$(BRCM_SAI_DBG)_PATH = $(PLATFORM_PATH)/brcm_sdk | ||
include $(PLATFORM_PATH)/sdk.mk | ||
include $(PLATFORM_PATH)/sai.mk | ||
include $(PLATFORM_PATH)/docker-orchagent-brcm.mk | ||
include $(PLATFORM_PATH)/docker-syncd-brcm.mk | ||
|
||
SONIC_COPY_DEBS += $(OPENNSL) $(BRCM_SAI) $(BRCM_SAI_DBG) $(BRCM_SAI_DEV) | ||
BRCM_DSSERVE = dsserve | ||
$(BRCM_DSSERVE)_PATH = $(PLATFORM_PATH)/sdk | ||
BRCM_BCMCMD = bcmcmd | ||
$(BRCM_BCMCMD)_PATH = $(PLATFORM_PATH)/sdk | ||
|
||
# TODO: Put dependencies for SDK packages | ||
SONIC_COPY_FILES += $(BRCM_DSSERVE) $(BRCM_BCMCMD) | ||
|
||
SONIC_ALL += $(SONIC_GENERIC) $(DOCKER_SYNCD) $(DOCKER_ORCHAGENT) $(DOCKER_FPM) | ||
SONIC_ALL += $(DOCKER_SYNCD_BRCM) \ | ||
$(DOCKER_ORCHAGENT_MLNX) | ||
|
||
# Inject brcm sai into sairedis | ||
$(LIBSAIREDIS)_DEPENDS += $(BRCM_LIBSAI) | ||
$(LIBSAIREDIS)_DEPENDS += $(BRCM_OPENNSL) $(BRCM_SAI) $(BRCM_SAI_DEV) | ||
|
||
# Runtime dependency on brcm sai is set only for syncd | ||
$(SYNCD)_RDEPENDS += $(BRCM_LIBSAI) | ||
$(SYNCD)_RDEPENDS += $(BRCM_OPENNSL) $(BRCM_SAI) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
BRCM_SAI = libsaibcm_2.0.3.7~20161214010054.112_amd64.deb | ||
$(BRCM_SAI)_PATH = $(PLATFORM_PATH)/sdk | ||
BRCM_SAI_DEV = libsaibcm-dev_2.0.3.7~20161214010054.112_amd64.deb | ||
$(BRCM_SAI_DEV)_PATH = $(PLATFORM_PATH)/sdk | ||
$(eval $(call add_derived_package,$(BRCM_SAI),$(BRCM_SAI_DEV))) | ||
|
||
SONIC_COPY_DEBS += $(BRCM_SAI) | ||
|
||
$(BRCM_SAI)_DEPENDS += $(BRCM_OPENNSL) | ||
$(BRCM_SAI_DEV)_DEPENDS += $(BRCM_SAI) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
BRCM_OPENNSL = libopennsl_3.2.1.5+0~20161214000201.54~1.gbpb514c3_amd64.deb | ||
$(BRCM_OPENNSL)_PATH = $(PLATFORM_PATH)/sdk | ||
|
||
SONIC_COPY_DEBS += $(BRCM_OPENNSL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters