File tree 5 files changed +7
-6
lines changed
internal/controller/scripts
5 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ FROM alpine:3.21.3 AS valkey
23
23
RUN apk add --no-cache \
24
24
openssl=3.3.3-r0 \
25
25
ca-certificates=20241121-r1 \
26
+ coreutils=9.5-r2 \
26
27
&& addgroup -S valkey -g 1009 \
27
28
&& adduser -S -G valkey valkey -u 1009 \
28
29
&& mkdir /etc/valkey \
Original file line number Diff line number Diff line change 2
2
set -e
3
3
if [ ! -z " $VALKEY_PASSWORD " ]; then export REDISCLI_AUTH=$VALKEY_PASSWORD ; fi ;
4
4
response=$(
5
- timeout -s 15 $1 \
5
+ timeout --foreground - s 15 $1 \
6
6
valkey-cli \
7
7
-h localhost \
8
8
-p $VALKEY_PORT_NUMBER \
Original file line number Diff line number Diff line change 4
4
if [ ! -z " $VALKEY_PASSWORD " ]; then export REDISCLI_AUTH=$VALKEY_PASSWORD ; fi ;
5
5
6
6
response=$(
7
- timeout -s 15 $1 \
7
+ timeout --foreground - s 15 $1 \
8
8
valkey-cli \
9
9
-h localhost \
10
10
-p $VALKEY_TLS_PORT_NUMBER \
Original file line number Diff line number Diff line change 4
4
VALKEY_STATUS_FILE=/tmp/.valkey_cluster_check
5
5
if [ ! -z " $VALKEY_PASSWORD " ]; then export REDISCLI_AUTH=$VALKEY_PASSWORD ; fi ;
6
6
response=$(
7
- timeout -s 15 $1 \
7
+ timeout --foreground - s 15 $1 \
8
8
valkey-cli \
9
9
-h localhost \
10
10
-p $VALKEY_PORT_NUMBER \
21
21
nodes=$( echo $VALKEY_NODES | wc -w)
22
22
if [ ! -f " $VALKEY_STATUS_FILE " ] && [ " $nodes " != " 1" ]; then
23
23
response=$(
24
- timeout -s 15 $1 \
24
+ timeout --foreground - s 15 $1 \
25
25
valkey-cli \
26
26
-h localhost \
27
27
-p $VALKEY_PORT_NUMBER \
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ VALKEY_STATUS_FILE=/tmp/.valkey_cluster_check
5
5
if [ ! -z " $VALKEY_PASSWORD " ]; then export REDISCLI_AUTH=$VALKEY_PASSWORD ; fi ;
6
6
7
7
response=$(
8
- timeout -s 15 $1 \
8
+ timeout --foreground - s 15 $1 \
9
9
valkey-cli \
10
10
-h localhost \
11
11
-p $VALKEY_TLS_PORT_NUMBER \
28
28
count=$( echo $VALKEY_NODES | wc -w)
29
29
if [ ! -f " $VALKEY_STATUS_FILE " ] && [ " $count " != " 1" ]; then
30
30
response=$(
31
- timeout -s 15 $1 \
31
+ timeout --foreground - s 15 $1 \
32
32
valkey-cli \
33
33
-h localhost \
34
34
-p $VALKEY_TLS_PORT_NUMBER \
You can’t perform that action at this time.
0 commit comments