[docker-syncd-vs]: Convert syncd-vs docker to buster (#4726)
Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
This commit is contained in:
parent
e28cb8f58e
commit
9505bdb910
@ -10,5 +10,8 @@ $(DOCKER_SYNCD_BASE)_DBG_DEPENDS += $(SYNCD_DBG) \
|
|||||||
$(LIBSAIMETADATA_DBG) \
|
$(LIBSAIMETADATA_DBG) \
|
||||||
$(LIBSAIREDIS_DBG)
|
$(LIBSAIREDIS_DBG)
|
||||||
|
|
||||||
|
SONIC_STRETCH_DOCKERS += $(DOCKER_SYNCD_BASE)
|
||||||
|
SONIC_STRETCH_DBG_DOCKERS += $(DOCKER_SYNCD_BASE_DBG)
|
||||||
|
|
||||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||||
$(DOCKER_SYNCD_BASE)_BASE_IMAGE_FILES += monit_syncd:/etc/monit/conf.d
|
$(DOCKER_SYNCD_BASE)_BASE_IMAGE_FILES += monit_syncd:/etc/monit/conf.d
|
||||||
|
@ -11,6 +11,9 @@ $(DOCKER_SYNCD_BASE)_DBG_DEPENDS += $(SYNCD_DBG) \
|
|||||||
$(LIBSAIMETADATA_DBG) \
|
$(LIBSAIMETADATA_DBG) \
|
||||||
$(LIBSAIREDIS_DBG)
|
$(LIBSAIREDIS_DBG)
|
||||||
|
|
||||||
|
SONIC_STRETCH_DOCKERS += $(DOCKER_SYNCD_BASE)
|
||||||
|
SONIC_STRETCH_DBG_DOCKERS += $(DOCKER_SYNCD_BASE_DBG)
|
||||||
|
|
||||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /var/run/docker-syncd:/var/run/sswsyncd
|
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /var/run/docker-syncd:/var/run/sswsyncd
|
||||||
|
|
||||||
|
@ -10,6 +10,8 @@ $(DOCKER_SYNCD_CENTEC)_DEPENDS += $(SYNCD_DBG) \
|
|||||||
$(LIBSAIMETADATA_DBG) \
|
$(LIBSAIMETADATA_DBG) \
|
||||||
$(LIBSAIREDIS_DBG)
|
$(LIBSAIREDIS_DBG)
|
||||||
|
|
||||||
|
SONIC_STRETCH_DOCKERS += $(DOCKER_SYNCD_BASE)
|
||||||
|
SONIC_STRETCH_DBG_DOCKERS += $(DOCKER_SYNCD_BASE_DBG)
|
||||||
|
|
||||||
$(DOCKER_SYNCD_CENTEC)_RUN_OPT += --privileged -t
|
$(DOCKER_SYNCD_CENTEC)_RUN_OPT += --privileged -t
|
||||||
$(DOCKER_SYNCD_CENTEC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
$(DOCKER_SYNCD_CENTEC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||||
|
@ -10,4 +10,7 @@ $(DOCKER_SYNCD_BASE)_DBG_DEPENDS += $(SYNCD_DBG) \
|
|||||||
$(LIBSAIMETADATA_DBG) \
|
$(LIBSAIMETADATA_DBG) \
|
||||||
$(LIBSAIREDIS_DBG)
|
$(LIBSAIREDIS_DBG)
|
||||||
|
|
||||||
|
SONIC_STRETCH_DOCKERS += $(DOCKER_SYNCD_BASE)
|
||||||
|
SONIC_STRETCH_DBG_DOCKERS += $(DOCKER_SYNCD_BASE_DBG)
|
||||||
|
|
||||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||||
|
@ -10,5 +10,8 @@ $(DOCKER_SYNCD_BASE)_DBG_DEPENDS += $(SYNCD_DBG) \
|
|||||||
$(LIBSAIMETADATA_DBG) \
|
$(LIBSAIMETADATA_DBG) \
|
||||||
$(LIBSAIREDIS_DBG)
|
$(LIBSAIREDIS_DBG)
|
||||||
|
|
||||||
|
SONIC_STRETCH_DOCKERS += $(DOCKER_SYNCD_BASE)
|
||||||
|
SONIC_STRETCH_DBG_DOCKERS += $(DOCKER_SYNCD_BASE_DBG)
|
||||||
|
|
||||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||||
$(DOCKER_SYNCD_BASE)_BASE_IMAGE_FILES += monit_syncd:/etc/monit/conf.d
|
$(DOCKER_SYNCD_BASE)_BASE_IMAGE_FILES += monit_syncd:/etc/monit/conf.d
|
||||||
|
@ -10,5 +10,8 @@ $(DOCKER_SYNCD_BASE)_DBG_DEPENDS += $(SYNCD_DBG) \
|
|||||||
$(LIBSAIMETADATA_DBG) \
|
$(LIBSAIMETADATA_DBG) \
|
||||||
$(LIBSAIREDIS_DBG)
|
$(LIBSAIREDIS_DBG)
|
||||||
|
|
||||||
|
SONIC_STRETCH_DOCKERS += $(DOCKER_SYNCD_BASE)
|
||||||
|
SONIC_STRETCH_DBG_DOCKERS += $(DOCKER_SYNCD_BASE_DBG)
|
||||||
|
|
||||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||||
$(DOCKER_SYNCD_BASE)_BASE_IMAGE_FILES += monit_syncd:/etc/monit/conf.d
|
$(DOCKER_SYNCD_BASE)_BASE_IMAGE_FILES += monit_syncd:/etc/monit/conf.d
|
||||||
|
@ -10,6 +10,9 @@ $(DOCKER_SYNCD_BASE)_DBG_DEPENDS += $(SYNCD_DBG) \
|
|||||||
$(LIBSAIMETADATA_DBG) \
|
$(LIBSAIMETADATA_DBG) \
|
||||||
$(LIBSAIREDIS_DBG)
|
$(LIBSAIREDIS_DBG)
|
||||||
|
|
||||||
|
SONIC_STRETCH_DOCKERS += $(DOCKER_SYNCD_BASE)
|
||||||
|
SONIC_STRETCH_DBG_DOCKERS += $(DOCKER_SYNCD_BASE_DBG)
|
||||||
|
|
||||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /var/run/docker-syncd:/var/run/sswsyncd
|
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /var/run/docker-syncd:/var/run/sswsyncd
|
||||||
$(DOCKER_SYNCD_BASE)_BASE_IMAGE_FILES += monit_syncd:/etc/monit/conf.d
|
$(DOCKER_SYNCD_BASE)_BASE_IMAGE_FILES += monit_syncd:/etc/monit/conf.d
|
||||||
|
@ -14,5 +14,8 @@ ifeq ($(SDK_FROM_SRC), y)
|
|||||||
$(DOCKER_SYNCD_BASE)_DBG_DEPENDS += $(MLNX_SDK_DBG_DEBS) $(MLNX_SAI_DBGSYM)
|
$(DOCKER_SYNCD_BASE)_DBG_DEPENDS += $(MLNX_SDK_DBG_DEBS) $(MLNX_SAI_DBGSYM)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
SONIC_STRETCH_DOCKERS += $(DOCKER_SYNCD_BASE)
|
||||||
|
SONIC_STRETCH_DBG_DOCKERS += $(DOCKER_SYNCD_BASE_DBG)
|
||||||
|
|
||||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||||
$(DOCKER_SYNCD_BASE)_BASE_IMAGE_FILES += monit_syncd:/etc/monit/conf.d
|
$(DOCKER_SYNCD_BASE)_BASE_IMAGE_FILES += monit_syncd:/etc/monit/conf.d
|
||||||
|
@ -11,6 +11,9 @@ $(DOCKER_SYNCD_BASE)_DBG_DEPENDS += $(SYNCD_DBG) \
|
|||||||
$(LIBSAIMETADATA_DBG) \
|
$(LIBSAIMETADATA_DBG) \
|
||||||
$(LIBSAIREDIS_DBG)
|
$(LIBSAIREDIS_DBG)
|
||||||
|
|
||||||
|
SONIC_STRETCH_DOCKERS += $(DOCKER_SYNCD_BASE)
|
||||||
|
SONIC_STRETCH_DBG_DOCKERS += $(DOCKER_SYNCD_BASE_DBG)
|
||||||
|
|
||||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /var/run/docker-syncd:/var/run/sswsyncd
|
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /var/run/docker-syncd:/var/run/sswsyncd
|
||||||
|
|
||||||
|
@ -9,25 +9,30 @@ $(DOCKER_SYNCD_BASE)_PATH = $(PLATFORM_PATH)/docker-syncd-$(DOCKER_SYNCD_PLATFOR
|
|||||||
|
|
||||||
$(DOCKER_SYNCD_BASE)_FILES += $(SUPERVISOR_PROC_EXIT_LISTENER_SCRIPT)
|
$(DOCKER_SYNCD_BASE)_FILES += $(SUPERVISOR_PROC_EXIT_LISTENER_SCRIPT)
|
||||||
|
|
||||||
|
ifeq ($(BLDENV),stretch)
|
||||||
$(DOCKER_SYNCD_BASE)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_STRETCH)
|
$(DOCKER_SYNCD_BASE)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_STRETCH)
|
||||||
|
|
||||||
$(DOCKER_SYNCD_BASE)_DBG_DEPENDS += $($(DOCKER_CONFIG_ENGINE_STRETCH)_DBG_DEPENDS)
|
$(DOCKER_SYNCD_BASE)_DBG_DEPENDS += $($(DOCKER_CONFIG_ENGINE_STRETCH)_DBG_DEPENDS)
|
||||||
|
|
||||||
$(DOCKER_SYNCD_BASE)_DBG_IMAGE_PACKAGES = $($(DOCKER_CONFIG_ENGINE_STRETCH)_DBG_IMAGE_PACKAGES)
|
$(DOCKER_SYNCD_BASE)_DBG_IMAGE_PACKAGES = $($(DOCKER_CONFIG_ENGINE_STRETCH)_DBG_IMAGE_PACKAGES)
|
||||||
|
else
|
||||||
|
$(DOCKER_SYNCD_BASE)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_BUSTER)
|
||||||
|
|
||||||
|
$(DOCKER_SYNCD_BASE)_DBG_DEPENDS += $($(DOCKER_CONFIG_ENGINE_BUSTER)_DBG_DEPENDS)
|
||||||
|
|
||||||
|
$(DOCKER_SYNCD_BASE)_DBG_IMAGE_PACKAGES = $($(DOCKER_CONFIG_ENGINE_BUSTER)_DBG_IMAGE_PACKAGES)
|
||||||
|
endif
|
||||||
|
|
||||||
SONIC_DOCKER_IMAGES += $(DOCKER_SYNCD_BASE)
|
SONIC_DOCKER_IMAGES += $(DOCKER_SYNCD_BASE)
|
||||||
SONIC_STRETCH_DOCKERS += $(DOCKER_SYNCD_BASE)
|
|
||||||
ifneq ($(ENABLE_SYNCD_RPC),y)
|
ifneq ($(ENABLE_SYNCD_RPC),y)
|
||||||
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_SYNCD_BASE)
|
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_SYNCD_BASE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SONIC_DOCKER_DBG_IMAGES += $(DOCKER_SYNCD_BASE_DBG)
|
SONIC_DOCKER_DBG_IMAGES += $(DOCKER_SYNCD_BASE_DBG)
|
||||||
SONIC_STRETCH_DBG_DOCKERS += $(DOCKER_SYNCD_BASE_DBG)
|
|
||||||
ifneq ($(ENABLE_SYNCD_RPC),y)
|
ifneq ($(ENABLE_SYNCD_RPC),y)
|
||||||
SONIC_INSTALL_DOCKER_DBG_IMAGES += $(DOCKER_SYNCD_BASE_DBG)
|
SONIC_INSTALL_DOCKER_DBG_IMAGES += $(DOCKER_SYNCD_BASE_DBG)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
$(DOCKER_SYNCD_BASE)_CONTAINER_NAME = syncd
|
$(DOCKER_SYNCD_BASE)_CONTAINER_NAME = syncd
|
||||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += --privileged -t
|
$(DOCKER_SYNCD_BASE)_RUN_OPT += --privileged -t
|
||||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM docker-config-engine-stretch
|
FROM docker-config-engine-buster
|
||||||
|
|
||||||
ARG docker_container_name
|
ARG docker_container_name
|
||||||
RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%syslogtag%/;" /etc/rsyslog.conf
|
RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%syslogtag%/;" /etc/rsyslog.conf
|
||||||
@ -8,7 +8,7 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
|
||||||
RUN apt-get install -f -y iproute2=4.20.0-2~bpo9+1 libcap2-bin=1:2.25-1
|
RUN apt-get install -f -y iproute2=4.20.0-2 libcap2-bin=1:2.25-2
|
||||||
|
|
||||||
COPY \
|
COPY \
|
||||||
{% for deb in docker_syncd_vs_debs.split(' ') -%}
|
{% for deb in docker_syncd_vs_debs.split(' ') -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user