[docker-{sonic,syncd}-vs]: upgrade {sonic,syncd}-vs docker to stretch (#2865)
* [docker-{sonic,syncd}-vs]: upgrade sonic-vs and syncd-vs docker to stretch * remove python-click 6.6 Signed-off-by: Guohan Lu <gulv@microsoft.com>
This commit is contained in:
parent
1c79599882
commit
8080695ecf
2
Makefile
2
Makefile
@ -5,7 +5,7 @@ NOSTRETCH ?= 0
|
|||||||
%::
|
%::
|
||||||
@echo "+++ --- Making $@ --- +++"
|
@echo "+++ --- Making $@ --- +++"
|
||||||
ifeq ($(NOSTRETCH), 0)
|
ifeq ($(NOSTRETCH), 0)
|
||||||
BLDENV=stretch make -f Makefile.work stretch
|
BLDENV=stretch EXTRA_STRETCH_TARGETS=$(notdir $@) make -f Makefile.work stretch
|
||||||
endif
|
endif
|
||||||
make -f Makefile.work $@
|
make -f Makefile.work $@
|
||||||
|
|
||||||
|
@ -123,6 +123,7 @@ SONIC_BUILD_INSTRUCTION := make \
|
|||||||
HTTP_PROXY=$(http_proxy) \
|
HTTP_PROXY=$(http_proxy) \
|
||||||
HTTPS_PROXY=$(https_proxy) \
|
HTTPS_PROXY=$(https_proxy) \
|
||||||
SONIC_ENABLE_SYSTEM_TELEMETRY=$(ENABLE_SYSTEM_TELEMETRY) \
|
SONIC_ENABLE_SYSTEM_TELEMETRY=$(ENABLE_SYSTEM_TELEMETRY) \
|
||||||
|
EXTRA_STRETCH_TARGETS=$(EXTRA_STRETCH_TARGETS) \
|
||||||
$(SONIC_OVERRIDE_BUILD_VARS)
|
$(SONIC_OVERRIDE_BUILD_VARS)
|
||||||
|
|
||||||
.PHONY: sonic-slave-build sonic-slave-bash init reset
|
.PHONY: sonic-slave-build sonic-slave-bash init reset
|
||||||
|
@ -9,8 +9,7 @@ $(DOCKER_SONIC_VS)_DEPENDS += $(SWSS) \
|
|||||||
$(PYTHON_SWSSCOMMON) \
|
$(PYTHON_SWSSCOMMON) \
|
||||||
$(LIBTEAMDCT) \
|
$(LIBTEAMDCT) \
|
||||||
$(LIBTEAM_UTILS) \
|
$(LIBTEAM_UTILS) \
|
||||||
$(SONIC_DEVICE_DATA) \
|
$(SONIC_DEVICE_DATA)
|
||||||
$(IPROUTE2)
|
|
||||||
|
|
||||||
$(DOCKER_SONIC_VS)_PYTHON_DEBS += $(SONIC_UTILS)
|
$(DOCKER_SONIC_VS)_PYTHON_DEBS += $(SONIC_UTILS)
|
||||||
|
|
||||||
@ -36,5 +35,6 @@ $(DOCKER_SONIC_VS)_FILES += $(CONFIGDB_LOAD_SCRIPT) \
|
|||||||
$(QOS_CONFIG_TEMPLATE) \
|
$(QOS_CONFIG_TEMPLATE) \
|
||||||
$(SONIC_VERSION)
|
$(SONIC_VERSION)
|
||||||
|
|
||||||
$(DOCKER_SONIC_VS)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE)
|
$(DOCKER_SONIC_VS)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_STRETCH)
|
||||||
SONIC_DOCKER_IMAGES += $(DOCKER_SONIC_VS)
|
SONIC_DOCKER_IMAGES += $(DOCKER_SONIC_VS)
|
||||||
|
SONIC_STRETCH_DOCKERS += $(DOCKER_SONIC_VS)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM docker-config-engine
|
FROM docker-config-engine-stretch
|
||||||
|
|
||||||
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
|
||||||
@ -6,6 +6,7 @@ RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%s
|
|||||||
## Make apt-get non-interactive
|
## Make apt-get non-interactive
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
RUN apt-get install -y gnupg
|
||||||
COPY ["sonic-dev.gpg.key", "/etc/apt/"]
|
COPY ["sonic-dev.gpg.key", "/etc/apt/"]
|
||||||
RUN apt-key add /etc/apt/sonic-dev.gpg.key
|
RUN apt-key add /etc/apt/sonic-dev.gpg.key
|
||||||
RUN echo "deb http://packages.microsoft.com/repos/sonic-dev/ jessie main" >> /etc/apt/sources.list
|
RUN echo "deb http://packages.microsoft.com/repos/sonic-dev/ jessie main" >> /etc/apt/sources.list
|
||||||
@ -21,12 +22,11 @@ RUN apt-get install -y net-tools \
|
|||||||
python-ply \
|
python-ply \
|
||||||
libqt5core5a \
|
libqt5core5a \
|
||||||
libqt5network5 \
|
libqt5network5 \
|
||||||
libboost-program-options1.55.0 \
|
libboost-program-options1.62.0 \
|
||||||
libboost-system1.55.0 \
|
libboost-system1.62.0 \
|
||||||
libboost-thread1.55.0 \
|
libboost-thread1.62.0 \
|
||||||
libgmp10 \
|
libgmp10 \
|
||||||
libjudydebian1 \
|
libjudydebian1 \
|
||||||
libnanomsg0 \
|
|
||||||
libdaemon0 \
|
libdaemon0 \
|
||||||
libjansson4 \
|
libjansson4 \
|
||||||
libjemalloc1 \
|
libjemalloc1 \
|
||||||
|
@ -1,20 +1,14 @@
|
|||||||
# docker image for vs syncd
|
# docker image for vs syncd
|
||||||
|
|
||||||
DOCKER_SYNCD_VS = docker-syncd-vs.gz
|
DOCKER_SYNCD_PLATFORM_CODE = vs
|
||||||
$(DOCKER_SYNCD_VS)_PATH = $(PLATFORM_PATH)/docker-syncd-vs
|
include $(PLATFORM_PATH)/../template/docker-syncd-base.mk
|
||||||
$(DOCKER_SYNCD_VS)_DEPENDS += $(SYNCD_VS)
|
|
||||||
ifeq ($(INSTALL_DEBUG_TOOLS), y)
|
$(DOCKER_SYNCD_BASE)_DEPENDS += $(SYNCD_VS)
|
||||||
$(DOCKER_SYNCD_VS)_DEPENDS += $(SYNCD_VS_DBG) \
|
|
||||||
|
$(DOCKER_SYNCD_BASE)_DBG_DEPENDS += $(SYNCD_VS_DBG) \
|
||||||
$(LIBSWSSCOMMON_DBG) \
|
$(LIBSWSSCOMMON_DBG) \
|
||||||
|
$(LIBSAIMETADATA_DBG) \
|
||||||
$(LIBSAIREDIS_DBG) \
|
$(LIBSAIREDIS_DBG) \
|
||||||
$(LIBSAIVS_DBG)
|
$(LIBSAIVS_DBG)
|
||||||
endif
|
|
||||||
$(DOCKER_SYNCD_VS)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE)
|
|
||||||
SONIC_DOCKER_IMAGES += $(DOCKER_SYNCD_VS)
|
|
||||||
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_SYNCD_VS)
|
|
||||||
|
|
||||||
$(DOCKER_SYNCD_VS)_CONTAINER_NAME = syncd
|
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||||
$(DOCKER_SYNCD_VS)_RUN_OPT += --net=host --privileged -t
|
|
||||||
$(DOCKER_SYNCD_VS)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
|
||||||
$(DOCKER_SYNCD_VS)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
|
||||||
$(DOCKER_SYNCD_VS)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM docker-config-engine
|
FROM docker-config-engine-stretch
|
||||||
|
|
||||||
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
|
||||||
|
4
slave.mk
4
slave.mk
@ -473,11 +473,11 @@ SONIC_TARGET_LIST += $(addprefix $(TARGET_PATH)/, $(SONIC_SIMPLE_DOCKER_IMAGES))
|
|||||||
|
|
||||||
# Build stretch docker images only in stretch slave docker,
|
# Build stretch docker images only in stretch slave docker,
|
||||||
# jessie docker images only in jessie slave docker
|
# jessie docker images only in jessie slave docker
|
||||||
DOCKER_IMAGES_FOR_INSTALLERS := $(sort $(foreach installer,$(SONIC_INSTALLERS),$($(installer)_DOCKERS)))
|
|
||||||
ifeq ($(BLDENV),stretch)
|
ifeq ($(BLDENV),stretch)
|
||||||
|
DOCKER_IMAGES_FOR_INSTALLERS := $(sort $(foreach installer,$(SONIC_INSTALLERS),$($(installer)_DOCKERS)))
|
||||||
DOCKER_IMAGES := $(SONIC_STRETCH_DOCKERS)
|
DOCKER_IMAGES := $(SONIC_STRETCH_DOCKERS)
|
||||||
DOCKER_DBG_IMAGES := $(SONIC_STRETCH_DBG_DOCKERS)
|
DOCKER_DBG_IMAGES := $(SONIC_STRETCH_DBG_DOCKERS)
|
||||||
SONIC_STRETCH_DOCKERS_FOR_INSTALLERS = $(filter $(SONIC_STRETCH_DOCKERS),$(DOCKER_IMAGES_FOR_INSTALLERS))
|
SONIC_STRETCH_DOCKERS_FOR_INSTALLERS = $(filter $(SONIC_STRETCH_DOCKERS),$(DOCKER_IMAGES_FOR_INSTALLERS) $(EXTRA_STRETCH_TARGETS))
|
||||||
SONIC_STRETCH_DBG_DOCKERS_FOR_INSTALLERS = $(filter $(SONIC_STRETCH_DBG_DOCKERS), $(patsubst %.gz,%-$(DBG_IMAGE_MARK).gz, $(SONIC_STRETCH_DOCKERS_FOR_INSTALLERS)))
|
SONIC_STRETCH_DBG_DOCKERS_FOR_INSTALLERS = $(filter $(SONIC_STRETCH_DBG_DOCKERS), $(patsubst %.gz,%-$(DBG_IMAGE_MARK).gz, $(SONIC_STRETCH_DOCKERS_FOR_INSTALLERS)))
|
||||||
else
|
else
|
||||||
DOCKER_IMAGES := $(filter-out $(SONIC_STRETCH_DOCKERS), $(SONIC_DOCKER_IMAGES))
|
DOCKER_IMAGES := $(filter-out $(SONIC_STRETCH_DOCKERS), $(SONIC_DOCKER_IMAGES))
|
||||||
|
@ -262,6 +262,8 @@ RUN pip install --force-reinstall --upgrade jinja2>=2.10
|
|||||||
# For templating
|
# For templating
|
||||||
RUN pip install j2cli
|
RUN pip install j2cli
|
||||||
|
|
||||||
|
# Remove python-click 6.6
|
||||||
|
RUN apt-get purge -y python-click
|
||||||
# For sonic utilities testing
|
# For sonic utilities testing
|
||||||
RUN pip install click-default-group click natsort tabulate netifaces==0.10.7 fastentrypoints
|
RUN pip install click-default-group click natsort tabulate netifaces==0.10.7 fastentrypoints
|
||||||
|
|
||||||
@ -276,6 +278,11 @@ RUN pip3 install redis
|
|||||||
# For supervisor build
|
# For supervisor build
|
||||||
RUN pip install meld3 mock
|
RUN pip install meld3 mock
|
||||||
|
|
||||||
|
# For sonic-utilities build
|
||||||
|
RUN pip install mockredispy==2.9.3
|
||||||
|
RUN pip install pytest-runner==4.4
|
||||||
|
RUN pip install setuptools==40.8.0
|
||||||
|
|
||||||
# Install dependencies for isc-dhcp-relay build
|
# Install dependencies for isc-dhcp-relay build
|
||||||
RUN apt-get -y build-dep isc-dhcp
|
RUN apt-get -y build-dep isc-dhcp
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user