Skip to content

Commit

Permalink
Instead of pinning a specific 6.0.x redis version we just set 6.0 bra…
Browse files Browse the repository at this point in the history
…nch instead so that it will automatically build the latest 6.0 tag for the user. In the Makefile we choose the version anyway what we want to build. This also fixes the slight annoyance that all images has to be rebuilt when we just want to bump the latest version and nothing else. Also updated github URL to point to redis/redis as the repo has been moved there.
  • Loading branch information
Grokzen committed Oct 11, 2020
1 parent 7963584 commit 69963a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ ENV SSL_CERT_FILE=/usr/local/etc/openssl/cert.pem

RUN gem install redis -v 4.1.3

ARG redis_version=6.0.8
# This will always build the latest release/commit in the 6.0 branch
ARG redis_version=6.0

RUN wget -qO redis.tar.gz https://github.com/antirez/redis/archive/${redis_version}.tar.gz \
RUN wget -qO redis.tar.gz https://github.com/redis/redis/tarball/${redis_version} \
&& tar xfz redis.tar.gz -C / \
&& mv /redis-$redis_version /redis
&& mv /redis-* /redis

RUN (cd /redis && make)

Expand Down

0 comments on commit 69963a0

Please sign in to comment.