Skip to content

Commit 6e5a2d9

Browse files
committed
To fix the issue: show_techsupport & saidump errors during testbed testing
sonic-net/sonic-sairedis#1387
1 parent d4fe0bd commit 6e5a2d9

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

dockers/docker-base-bullseye/Dockerfile.j2

100644100755
+14-8
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,23 @@ RUN pip3 install supervisord-dependent-startup==1.4.0
8383

8484
RUN mkdir -p /var/log/supervisor /etc/supervisor/conf.d
8585

86-
# Install gcc, libc6-dev and python3-dev for compiling python-lzf
87-
RUN apt-get -y install build-essential libc6-dev python3-dev
86+
# Install gcc, libc6-dev and git for compiling librdb
87+
RUN apt-get -y install build-essential libc6-dev git
8888

89-
# Install python-lzf
90-
RUN pip3 install 'python-lzf==0.2.4'
89+
# Obtain librdb source codes
90+
RUN git -C /tmp/ clone https://github.com/redis/librdb.git
9191

92-
# Install rdbtools
93-
RUN pip3 install 'rdbtools==0.1.15'
92+
# Build librdb
93+
RUN cd /tmp/librdb/;git submodule update --init --recursive;make -j4
9494

95-
# Uninstall gcc, libc6-dev and python3-dev for compiling python-lzf
96-
RUN apt-get -y purge build-essential libc6-dev python3-dev
95+
# Install rdb-cli
96+
RUN install -p -D -m 0775 /tmp/librdb/bin/rdb-cli /usr/bin/rdb-cli
97+
98+
# Clear librdb source codes
99+
RUN rm -rf /tmp/librdb
100+
101+
# Uninstall gcc, libc6-dev and git for compiling librdb
102+
RUN apt-get -y purge build-essential libc6-dev git
97103

98104
# Uninstall unused dependencies
99105
RUN apt autoremove -y --purge

0 commit comments

Comments
 (0)