Skip to content

Commit

Permalink
Merge pull request #25 from WyriHaximusNet/install-redis-with-tls-ena…
Browse files Browse the repository at this point in the history
…bled

Install redis-cli with TLS enabled
  • Loading branch information
WyriHaximus authored Oct 9, 2022
2 parents 91e596a + 8313b17 commit 86a1c03
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .hadolint.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ignored:
- DL3018 # Pin versions in apk add - See: https://github.com/hadolint/hadolint/wiki/DL3018
- DL3020 # We're copying the scripts for this operator to work
- DL3020 # We're copying the scripts for this operator to work
- DL3047 # We're wgetting just fine
- DL3003 # It's only for during building redis that we cd
12 changes: 11 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
FROM flant/shell-operator:v1.0.12

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

ADD hooks /hooks
ADD engine /engine

0 comments on commit 86a1c03

Please sign in to comment.