更新redis镜像版本

This commit is contained in:
KennyLee 2020-03-09 09:48:45 +08:00
parent caa25d0b40
commit 117f84280f
3 changed files with 14 additions and 6 deletions

View File

@ -10,5 +10,13 @@ fork for https://github.com/docker-library/redis
应用机器,只要设置 `sentinel` 的服务器集群来发现可用redis服务器即可。
## 镜像更新
1. 更新变量 `REDIS_VERSION` 为最新版本
2. 下载具体 `redis-${REDIS_VERSION}.tar.gz` 文件。
3. 获取`SHA`,如命令 `shasum -a 256 ~/Downloads/redis-3.2.13.tar.gz`
4. 更新 `REDIS_DOWNLOAD_SHA` 为刚获取到的SHA值。

View File

@ -20,9 +20,9 @@ RUN set -x \
&& chmod +x /usr/local/bin/gosu \
&& gosu nobody true
ENV REDIS_VERSION 3.2.9
ENV REDIS_DOWNLOAD_URL http://download.redis.io/releases/redis-3.2.9.tar.gz
ENV REDIS_DOWNLOAD_SHA 6eaacfa983b287e440d0839ead20c2231749d5d6b78bbe0e0ffa3a890c59ff26
ENV REDIS_VERSION 3.2.13
ENV REDIS_DOWNLOAD_URL http://download.redis.io/releases/redis-${REDIS_VERSION}.tar.gz
ENV REDIS_DOWNLOAD_SHA 862979c9853fdb1d275d9eb9077f34621596fec1843e3e7f2e2f09ce09a387ba
# for redis-sentinel see: http://redis.io/topics/sentinel
RUN set -ex \

View File

@ -6,9 +6,9 @@ RUN addgroup -S redis && adduser -S -G redis redis
# grab su-exec for easy step-down from root
RUN apk add --no-cache 'su-exec>=0.2'
ENV REDIS_VERSION 3.2.9
ENV REDIS_DOWNLOAD_URL http://download.redis.io/releases/redis-3.2.9.tar.gz
ENV REDIS_DOWNLOAD_SHA 6eaacfa983b287e440d0839ead20c2231749d5d6b78bbe0e0ffa3a890c59ff26
ENV REDIS_VERSION 3.2.13
ENV REDIS_DOWNLOAD_URL http://download.redis.io/releases/redis-${REDIS_VERSION}.tar.gz
ENV REDIS_DOWNLOAD_SHA 862979c9853fdb1d275d9eb9077f34621596fec1843e3e7f2e2f09ce09a387ba
# for redis-sentinel see: http://redis.io/topics/sentinel
RUN set -ex \