Skip to content

Commit 47639bf

Browse files
committed
Add redis cli with TLS support
1 parent 13a6a58 commit 47639bf

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
# Use the Amazon Linux-based AWS CLI image
22
FROM amazonlinux:latest
33

4-
# Install the AWS CLI and other necessary tools
4+
# Install the AWS CLI, Redis CLI with TLS support, and other necessary tools
55
RUN yum update -y && \
6-
yum install -y aws-cli nc nano vim jq && \
6+
yum install -y aws-cli nc nano vim jq gcc make openssl-devel tar gzip && \
77
yum clean all
88

9+
# Install Redis CLI with TLS support
10+
RUN curl -L https://download.redis.io/releases/redis-7.4.4.tar.gz -o redis.tar.gz && \
11+
tar xzf redis.tar.gz && \
12+
cd redis-7.4.4 && \
13+
make BUILD_TLS=yes && \
14+
cp src/redis-cli /usr/local/bin/ && \
15+
cd .. && \
16+
rm -rf redis-7.4.4 redis.tar.gz
17+
918
RUN dnf update -y
1019
RUN dnf install mariadb105 -y
1120

0 commit comments

Comments
 (0)