Skip to content

Commit 86a1c03

Browse files
authored
Merge pull request #25 from WyriHaximusNet/install-redis-with-tls-enabled
Install redis-cli with TLS enabled
2 parents 91e596a + 8313b17 commit 86a1c03

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.hadolint.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
ignored:
22
- DL3018 # Pin versions in apk add - See: https://github.com/hadolint/hadolint/wiki/DL3018
3-
- DL3020 # We're copying the scripts for this operator to work
3+
- DL3020 # We're copying the scripts for this operator to work
4+
- DL3047 # We're wgetting just fine
5+
- DL3003 # It's only for during building redis that we cd

Dockerfile

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
FROM flant/shell-operator:v1.0.12
22

3-
RUN apk add --no-cache redis
3+
RUN export REDIS_VERSION="7.0.5" && \
4+
export REDIS_DOWNLOAD_URL="http://download.redis.io/releases/redis-${REDIS_VERSION}.tar.gz" && \
5+
apk add --update --no-cache --virtual build-deps gcc make linux-headers musl-dev tar openssl-dev pkgconfig && \
6+
wget -O redis.tar.gz "$REDIS_DOWNLOAD_URL" && \
7+
mkdir -p /usr/src/redis && \
8+
tar -xzf redis.tar.gz -C /usr/src/redis --strip-components=1 && \
9+
cd /usr/src/redis/src && \
10+
make BUILD_TLS=yes MALLOC=libc redis-cli && \
11+
cp redis-cli /usr/bin/redis-cli && \
12+
cd && \
13+
redis-cli -v
414

515
ADD hooks /hooks
616
ADD engine /engine

0 commit comments

Comments
 (0)