[dockers]: Upgrade database and telemetry docker to stretch build (#2541)
* Upgrade database and telemetry docker to stretch build Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com> * Remove SONIC_STRETCH_DEBS list add for redis and telemetry Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
This commit is contained in:
parent
6037707abc
commit
7b81d4ddd6
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)))
|
||||
|
||||
|
@ -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 \
|
||||
|
@ -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 \
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user