diff --git a/dockers/docker-database/Dockerfile.j2 b/dockers/docker-database/Dockerfile.j2 index c89f4d63d2..9ec3926de6 100644 --- a/dockers/docker-database/Dockerfile.j2 +++ b/dockers/docker-database/Dockerfile.j2 @@ -28,6 +28,7 @@ RUN apt-get clean -y && \ s/^logfile .*$/logfile ""/; \ s/^# syslog-enabled no$/syslog-enabled no/; \ s/^# unixsocket/unixsocket/; \ + s/redis-server.sock/redis.sock/g; \ s/^client-output-buffer-limit pubsub [0-9]+mb [0-9]+mb [0-9]+/client-output-buffer-limit pubsub 0 0 0/ \ ' /etc/redis/redis.conf diff --git a/dockers/docker-orchagent/Dockerfile.j2 b/dockers/docker-orchagent/Dockerfile.j2 index 8b6fe88458..12b40d4190 100755 --- a/dockers/docker-orchagent/Dockerfile.j2 +++ b/dockers/docker-orchagent/Dockerfile.j2 @@ -20,7 +20,11 @@ RUN apt-get update && \ tcpdump \ # Install redis-tools dependencies # TODO: implicitly install dependencies + libatomic1 \ libjemalloc1 \ + liblua5.1-0 \ + lua-bitop \ + lua-cjson \ libelf1 \ libmnl0 \ bridge-utils diff --git a/dockers/docker-sonic-telemetry/Dockerfile.j2 b/dockers/docker-sonic-telemetry/Dockerfile.j2 index 8592f65737..cfbe7c6f26 100644 --- a/dockers/docker-sonic-telemetry/Dockerfile.j2 +++ b/dockers/docker-sonic-telemetry/Dockerfile.j2 @@ -14,7 +14,11 @@ RUN apt-get update && \ libjansson4 \ # Install redis-tools dependencies # TODO: implicitly install dependencies - libjemalloc1 + libatomic1 \ + libjemalloc1 \ + liblua5.1-0 \ + lua-bitop \ + lua-cjson {% if docker_sonic_telemetry_debs.strip() -%} # Copy locally-built Debian package dependencies diff --git a/dockers/docker-teamd/Dockerfile.j2 b/dockers/docker-teamd/Dockerfile.j2 index d09aad2415..9188b7aaf7 100644 --- a/dockers/docker-teamd/Dockerfile.j2 +++ b/dockers/docker-teamd/Dockerfile.j2 @@ -15,7 +15,11 @@ RUN apt-get update && \ libpython2.7 \ # Install redis-tools dependencies # TODO: implicitly install dependencies - libjemalloc1 + libatomic1 \ + libjemalloc1 \ + liblua5.1-0 \ + lua-bitop \ + lua-cjson {% if docker_teamd_debs.strip() -%} # Copy locally-built Debian package dependencies diff --git a/platform/cavium/docker-syncd-cavm/Dockerfile.j2 b/platform/cavium/docker-syncd-cavm/Dockerfile.j2 index 5594c8e576..800be7e1bb 100755 --- a/platform/cavium/docker-syncd-cavm/Dockerfile.j2 +++ b/platform/cavium/docker-syncd-cavm/Dockerfile.j2 @@ -14,7 +14,7 @@ debs/{{ deb }}{{' '}} {%- endfor -%} debs/ -RUN apt-get -y install libpcap-dev libxml2-dev python-dev swig libsensors4-dev libjemalloc1 +RUN apt-get -y install libpcap-dev libxml2-dev python-dev swig libsensors4-dev libatomic1 libjemalloc1 liblua5.1-0 lua-bitop lua-cjson RUN dpkg -i \ {% for deb in docker_syncd_cavm_debs.split(' ') -%} diff --git a/platform/marvell/docker-syncd-mrvl/Dockerfile.j2 b/platform/marvell/docker-syncd-mrvl/Dockerfile.j2 index ca48db8087..5017b305f1 100755 --- a/platform/marvell/docker-syncd-mrvl/Dockerfile.j2 +++ b/platform/marvell/docker-syncd-mrvl/Dockerfile.j2 @@ -14,7 +14,7 @@ debs/{{ deb }}{{' '}} {%- endfor -%} debs/ -RUN apt-get -y install libpcap-dev libxml2-dev python-dev swig libsensors4-dev libjemalloc1 nfs-common +RUN apt-get -y install libpcap-dev libxml2-dev python-dev swig libsensors4-dev libatomic1 libjemalloc1 liblua5.1-0 lua-bitop lua-cjson nfs-common RUN dpkg -i \ {% for deb in docker_syncd_mrvl_debs.split(' ') -%} diff --git a/platform/p4/docker-sonic-p4/Dockerfile.j2 b/platform/p4/docker-sonic-p4/Dockerfile.j2 index 4988cbdb53..0f918821de 100644 --- a/platform/p4/docker-sonic-p4/Dockerfile.j2 +++ b/platform/p4/docker-sonic-p4/Dockerfile.j2 @@ -28,7 +28,11 @@ RUN apt-get install -y net-tools \ libnanomsg0 \ libdaemon0 \ libjansson4 \ + libatomic1 \ libjemalloc1 \ + liblua5.1-0 \ + lua-bitop \ + lua-cjson \ openssh-client \ openssh-server \ libc-ares2 \ diff --git a/platform/vs/docker-sonic-vs/Dockerfile.j2 b/platform/vs/docker-sonic-vs/Dockerfile.j2 index 2285c1f3e0..85db514d77 100644 --- a/platform/vs/docker-sonic-vs/Dockerfile.j2 +++ b/platform/vs/docker-sonic-vs/Dockerfile.j2 @@ -29,7 +29,11 @@ RUN apt-get install -y net-tools \ libjudydebian1 \ libdaemon0 \ libjansson4 \ + libatomic1 \ libjemalloc1 \ + liblua5.1-0 \ + lua-bitop \ + lua-cjson \ openssh-client \ openssh-server \ libc-ares2 \ @@ -91,6 +95,7 @@ RUN sed -ri 's/^(save .*$)/# \1/g; s/^# syslog-enabled no$/syslog-enabled no/; \ s/^# unixsocket/unixsocket/; \ s/notify-keyspace-events ""/notify-keyspace-events AKE/; \ + s/redis-server.sock/redis.sock/g; \ s/^client-output-buffer-limit pubsub [0-9]+mb [0-9]+mb [0-9]+/client-output-buffer-limit pubsub 0 0 0/ \ ' /etc/redis/redis.conf diff --git a/rules/hiredis.mk b/rules/hiredis.mk index 600d1c72f5..9710ff5306 100644 --- a/rules/hiredis.mk +++ b/rules/hiredis.mk @@ -1,18 +1,16 @@ # libhiredis package -HIREDIS_VERSION = 0.13.3 -HIREDIS_VERSION_FULL = $(HIREDIS_VERSION)-2 +HIREDIS_VERSION = 0.14.0 +HIREDIS_VERSION_FULL = $(HIREDIS_VERSION)-3~bpo9+1 export HIREDIS_VERSION HIREDIS_VERSION_FULL -LIBHIREDIS = libhiredis0.13_$(HIREDIS_VERSION_FULL)_amd64.deb +LIBHIREDIS = libhiredis0.14_$(HIREDIS_VERSION_FULL)_amd64.deb $(LIBHIREDIS)_SRC_PATH = $(SRC_PATH)/hiredis -$(LIBHIREDIS)_DEPENDS += $(REDIS_TOOLS) $(REDIS_SERVER) -$(LIBHIREDIS)_RDEPENDS += SONIC_MAKE_DEBS += $(LIBHIREDIS) LIBHIREDIS_DEV = libhiredis-dev_$(HIREDIS_VERSION_FULL)_amd64.deb $(eval $(call add_derived_package,$(LIBHIREDIS),$(LIBHIREDIS_DEV))) -LIBHIREDIS_DBG = libhiredis-dbg_$(HIREDIS_VERSION_FULL)_amd64.deb +LIBHIREDIS_DBG = libhiredis0.14-dbgsym_$(HIREDIS_VERSION_FULL)_amd64.deb $(eval $(call add_derived_package,$(LIBHIREDIS),$(LIBHIREDIS_DBG))) diff --git a/rules/redis.mk b/rules/redis.mk index 557453574d..13988f1a0d 100644 --- a/rules/redis.mk +++ b/rules/redis.mk @@ -1,9 +1,11 @@ # redis package -REDIS_VERSION = 3.2.4-1~bpo8+1 +REDIS_VERSION = 5.0.3-3~bpo9+2 REDIS_TOOLS = redis-tools_$(REDIS_VERSION)_amd64.deb $(REDIS_TOOLS)_SRC_PATH = $(SRC_PATH)/redis +$(REDIS_TOOLS)_DEPENDS += $(LIBHIREDIS_DEV) +$(REDIS_TOOLS)_RDEPENDS += $(LIBHIREDIS) SONIC_MAKE_DEBS += $(REDIS_TOOLS) REDIS_SERVER = redis-server_$(REDIS_VERSION)_amd64.deb diff --git a/sonic-slave-stretch/Dockerfile b/sonic-slave-stretch/Dockerfile index 915f0ac681..1c2d6430e2 100644 --- a/sonic-slave-stretch/Dockerfile +++ b/sonic-slave-stretch/Dockerfile @@ -151,6 +151,9 @@ RUN apt-get update && apt-get install -y \ python-stdeb \ # For redis build libjemalloc-dev \ + liblua5.1-0-dev \ + lua-bitop-dev \ + lua-cjson-dev \ # For mft kernel module build dkms \ # For python3.5 build diff --git a/src/hiredis/Makefile b/src/hiredis/Makefile index d302b327d3..73335f27da 100644 --- a/src/hiredis/Makefile +++ b/src/hiredis/Makefile @@ -2,8 +2,8 @@ SHELL = /bin/bash .SHELLFLAGS += -e -MAIN_TARGET = libhiredis0.13_$(HIREDIS_VERSION_FULL)_amd64.deb -DERIVED_TARGETS = libhiredis-dbg_$(HIREDIS_VERSION_FULL)_amd64.deb libhiredis-dev_$(HIREDIS_VERSION_FULL)_amd64.deb +MAIN_TARGET = libhiredis0.14_$(HIREDIS_VERSION_FULL)_amd64.deb +DERIVED_TARGETS = libhiredis0.14-dbgsym_$(HIREDIS_VERSION_FULL)_amd64.deb libhiredis-dev_$(HIREDIS_VERSION_FULL)_amd64.deb $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : rm -rf hiredis-$(HIREDIS_VERSION) diff --git a/src/redis/Makefile b/src/redis/Makefile index 04133820f0..f09398e342 100644 --- a/src/redis/Makefile +++ b/src/redis/Makefile @@ -2,8 +2,8 @@ SHELL = /bin/bash .ONESHELL: .SHELLFLAGS += -e -REDIS_VERSION = 3.2.4 -REDIS_VERSION_FULL = $(REDIS_VERSION)-1~bpo8+1 +REDIS_VERSION = 5.0.3 +REDIS_VERSION_FULL = $(REDIS_VERSION)-3~bpo9+2 MAIN_TARGET = redis-server_$(REDIS_VERSION_FULL)_amd64.deb DERIVED_TARGETS = redis-tools_$(REDIS_VERSION_FULL)_amd64.deb \ @@ -14,9 +14,10 @@ $(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" + + wget -O redis_$(REDIS_VERSION).orig.tar.gz -N "http://http.debian.net/debian/pool/main/r/redis/redis_$(REDIS_VERSION).orig.tar.gz" + wget -O redis_$(REDIS_VERSION_FULL).dsc -N "http://http.debian.net/debian/pool/main/r/redis/redis_$(REDIS_VERSION_FULL).dsc" + wget -O redis_$(REDIS_VERSION_FULL).debian.tar.xz -N "http://http.debian.net/debian/pool/main/r/redis/redis_$(REDIS_VERSION_FULL).debian.tar.xz" dpkg-source -x redis_$(REDIS_VERSION_FULL).dsc pushd redis-$(REDIS_VERSION)