diff --git a/dockers/docker-database/Dockerfile.j2 b/dockers/docker-database/Dockerfile.j2 index 697b4309fe..5200c1a5dd 100644 --- a/dockers/docker-database/Dockerfile.j2 +++ b/dockers/docker-database/Dockerfile.j2 @@ -1,4 +1,4 @@ -FROM docker-config-engine +FROM docker-config-engine-stretch ARG docker_container_name RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%syslogtag%/;" /etc/rsyslog.conf diff --git a/dockers/docker-sonic-telemetry/Dockerfile.j2 b/dockers/docker-sonic-telemetry/Dockerfile.j2 index 6b77f999e5..c311efbfbe 100644 --- a/dockers/docker-sonic-telemetry/Dockerfile.j2 +++ b/dockers/docker-sonic-telemetry/Dockerfile.j2 @@ -1,4 +1,4 @@ -FROM docker-config-engine +FROM docker-config-engine-stretch ARG docker_container_name RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%syslogtag%/;" /etc/rsyslog.conf diff --git a/rules/docker-database.mk b/rules/docker-database.mk index eb7f6531f8..9a7f67cedd 100644 --- a/rules/docker-database.mk +++ b/rules/docker-database.mk @@ -3,9 +3,10 @@ DOCKER_DATABASE = docker-database.gz $(DOCKER_DATABASE)_PATH = $(DOCKERS_PATH)/docker-database $(DOCKER_DATABASE)_DEPENDS += $(REDIS_TOOLS) $(REDIS_SERVER) -$(DOCKER_DATABASE)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE) +$(DOCKER_DATABASE)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_STRETCH) SONIC_DOCKER_IMAGES += $(DOCKER_DATABASE) SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_DATABASE) +SONIC_STRETCH_DOCKERS += $(DOCKER_DATABASE) $(DOCKER_DATABASE)_CONTAINER_NAME = database $(DOCKER_DATABASE)_RUN_OPT += --net=host --privileged -t diff --git a/rules/docker-telemetry.mk b/rules/docker-telemetry.mk index fca3b8a39a..df279e7033 100644 --- a/rules/docker-telemetry.mk +++ b/rules/docker-telemetry.mk @@ -3,10 +3,11 @@ DOCKER_TELEMETRY = docker-sonic-telemetry.gz $(DOCKER_TELEMETRY)_PATH = $(DOCKERS_PATH)/docker-sonic-telemetry $(DOCKER_TELEMETRY)_DEPENDS += $(REDIS_TOOLS) $(SONIC_TELEMETRY) -$(DOCKER_TELEMETRY)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE) +$(DOCKER_TELEMETRY)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_STRETCH) SONIC_DOCKER_IMAGES += $(DOCKER_TELEMETRY) ifeq ($(ENABLE_SYSTEM_TELEMETRY), y) SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_TELEMETRY) +SONIC_STRETCH_DOCKERS += $(DOCKER_TELEMETRY) endif $(DOCKER_TELEMETRY)_CONTAINER_NAME = telemetry diff --git a/rules/redis.mk b/rules/redis.mk index 1adf209f6a..150123e2c1 100644 --- a/rules/redis.mk +++ b/rules/redis.mk @@ -13,3 +13,4 @@ REDIS_SENTINEL = redis-sentinel_$(REDIS_VERSION)_amd64.deb $(REDIS_SENTINEL)_DEPENDS += $(REDIS_SERVER) $(REDIS_SENTINEL)_RDEPENDS += $(REDIS_SERVER) $(eval $(call add_derived_package,$(REDIS_TOOLS),$(REDIS_SENTINEL))) + diff --git a/sonic-slave-stretch/Dockerfile b/sonic-slave-stretch/Dockerfile index d1a75d20c4..171d78e177 100644 --- a/sonic-slave-stretch/Dockerfile +++ b/sonic-slave-stretch/Dockerfile @@ -217,8 +217,8 @@ RUN apt-get update && apt-get install -y \ # For linux build RUN apt-get -y build-dep linux -# For gobgp build -RUN export VERSION=1.8.3 \ +# For gobgp and telemetry build +RUN export VERSION=1.11.5 \ && wget https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz \ && tar -C /usr/local -xzf go$VERSION.linux-amd64.tar.gz \ && echo 'export GOROOT=/usr/local/go' >> /etc/bash.bashrc \ diff --git a/sonic-slave/Dockerfile b/sonic-slave/Dockerfile index 7af451c22d..c9550b4126 100644 --- a/sonic-slave/Dockerfile +++ b/sonic-slave/Dockerfile @@ -243,8 +243,8 @@ RUN apt-get -y install ca-certificates-java=20161107~bpo8+1 openjdk-8-jdk # For linux build RUN apt-get -y build-dep linux -# For gobgp build -RUN export VERSION=1.11.2 \ +# For gobgp and telemetry build +RUN export VERSION=1.11.5 \ && wget https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz \ && tar -C /usr/local -xzf go$VERSION.linux-amd64.tar.gz \ && echo 'export GOROOT=/usr/local/go' >> /etc/bash.bashrc \ diff --git a/src/redis/Makefile b/src/redis/Makefile index 8cd4458b43..afb4c2a7d2 100644 --- a/src/redis/Makefile +++ b/src/redis/Makefile @@ -10,6 +10,9 @@ DERIVED_TARGETS = redis-tools_$(REDIS_VERSION_FULL)_amd64.deb \ redis-sentinel_$(REDIS_VERSION_FULL)_amd64.deb $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : + rm -rf redis_build + mkdir redis_build + pushd redis_build wget -O redis_$(REDIS_VERSION).orig.tar.gz -N "https://sonicstorage.blob.core.windows.net/packages/redis_$(REDIS_VERSION).orig.tar.gz?sv=2015-04-05&sr=b&sig=B3qGEoSHe%2FBh5rVwvXHpKijgBtKF7dHeuJWp1p17UnU%3D&se=2026-11-26T22%3A31%3A31Z&sp=r" wget -O redis_$(REDIS_VERSION_FULL).dsc -N "https://sonicstorage.blob.core.windows.net/packages/redis_$(REDIS_VERSION_FULL).dsc?sv=2015-04-05&sr=b&sig=LoUtjLXa%2BCcoM%2BsPewRLkY7YPRvSJTbsvQoW%2BL%2B3QWM%3D&se=2026-11-26T22%3A32%3A11Z&sp=r" wget -O redis_$(REDIS_VERSION_FULL).debian.tar.xz -N "https://sonicstorage.blob.core.windows.net/packages/redis_$(REDIS_VERSION_FULL).debian.tar.xz?sv=2015-04-05&sr=b&sig=I33UsbDHiffEkQRndpFwY9y3I%2FrKTu0wmG%2FMXB98kys%3D&se=2026-11-26T22%3A32%3A34Z&sp=r" @@ -20,5 +23,6 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : popd mv $(DERIVED_TARGETS) $* $(DEST)/ + popd $(addprefix $(DEST)/, $(DERIVED_TARGETS)): $(DEST)/% : $(DEST)/$(MAIN_TARGET)