-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from WyriHaximusNet/install-redis-with-tls-ena…
…bled Install redis-cli with TLS enabled
- Loading branch information
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |