File tree 2 files changed +19
-2
lines changed
dockers/docker-syncd-cavm
2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return
18
18
&& dpkg_apt /deps/libsaimetadata_*.deb \
19
19
&& dpkg_apt /deps/syncd_*.deb
20
20
21
- RUN apt-get -y install libpcap-dev libxml2-dev python-dev swig libsensors4-dev
21
+ RUN apt-get -y install libpcap-dev libxml2-dev python-dev swig libsensors4-dev redis-tools
22
22
23
23
COPY ["start.sh" , "/usr/bin/" ]
24
24
Original file line number Diff line number Diff line change 3
3
export XP_ROOT=/usr/bin/
4
4
5
5
service rsyslog start
6
- syncd -p /etc/ssw/AS7512/profile.ini -N
6
+
7
+ while true ; do
8
+
9
+ # Check if redis-server starts
10
+
11
+ result=$( redis-cli ping)
12
+
13
+ if [ " $result " == " PONG" ]; then
14
+
15
+ redis-cli FLUSHALL
16
+ syncd -p /etc/ssw/AS7512/profile.ini -N
17
+ break
18
+
19
+ fi
20
+
21
+ sleep 1
22
+
23
+ done
You can’t perform that action at this time.
0 commit comments