Skip to content

Commit

Permalink
Update major version support to include 7.0 and drop 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Grokzen committed Dec 18, 2022
1 parent bf9adad commit d597529
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 33 deletions.
15 changes: 8 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# This travis run should only test and build the latest version of all major redis-server versions
language: python
python:
- "3.5"
- "3.10"
services:
- docker
env:
- REDIS_VERSION=3.0.7
- REDIS_VERSION=3.2.13
- REDIS_VERSION=4.0.14
- REDIS_VERSION=5.0.12
- REDIS_VERSION=6.0.12
- REDIS_VERSION=6.2.1
# - REDIS_VERSION=3.0.7
# - REDIS_VERSION=3.2.13
# - REDIS_VERSION=4.0.14
# - REDIS_VERSION=5.0.12
- REDIS_VERSION=6.0.16
- REDIS_VERSION=6.2.8
- REDIS_VERSION=7.0.7
script:
docker build --build-arg redis_version=$REDIS_VERSION -t grokzen/redis-cluster .
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2022-12-18

* Added redis 7.0.x releases and published docker images
* Dropped redis 5.0.x releases and unpublished docker images
* Added `invoke list` command to show all possible targets you can build against

## 2021-04-13

* Dropped the availability of redis-server major versions 3.0, 3.2, 4.0 from docker.hub
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ENV SSL_CERT_FILE=/usr/local/etc/openssl/cert.pem
RUN gem install redis -v 4.1.3

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

RUN wget -qO redis.tar.gz https://github.com/redis/redis/tarball/${redis_version} \
&& tar xfz redis.tar.gz -C / \
Expand Down
45 changes: 25 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ For all other purposes other then what has been stated you are free to fork and/

## Redis major version support and docker.hub availability

Starting from `2020-04-01` this repo will only support and make available on docker.hub all minor versions in the latest 3 major versions of redis-server software. At this date the tags on docker.hub for major versions 3.0, 3.2 & 4.0 will be removed and only 5.0, 6.0 & 6.2 will be available to download. This do not mean that you will not be able to build your desired version from this repo but there is no guarantees or support or hacks that will support this out of the box.
Starting from `2020-04-01` this repo will only support and make available on docker.hub all minor versions in the latest 3 major versions of redis-server software. At this date the tags on docker.hub for major versions 3.0, 3.2 & 4.0, 5.0 will be removed and only 6.0, 6.2, 7.0 will be available to download. This do not mean that you will not be able to build your desired version from this repo but there is no guarantees or support or hacks that will support this out of the box.

Moving forward when a new major release is shipped out, at the first minor release X.Y.1 version of the next major release, all tags from the last supported major version will be removed from docker.hub. This will give some time for the community to adapt and move forward in the versions before the older major version is removed from docker.hub.

Expand Down Expand Up @@ -228,17 +228,37 @@ The following tags with pre-built images is available on `docker-hub`.

Latest release in the most recent stable branch will be used as `latest` version.

- latest == 6.2.1
- latest == 7.0.7

Redis 7.0.x version:

- 7.0.7
- 7.0.6
- 7.0.5
- 7.0.4
- 7.0.3
- 7.0.2
- 7.0.1
- 7.0.0

Redis 6.2.x versions:

- 6.2.8
- 6.2.7
- 6.2.6
- 6.2.5
- 6.2.4
- 6.2.3
- 6.2.2
- 6.2.1
- 6.2.0
- 6.2-rc2
- 6.2-rc1

Redis 6.0.x versions:

- 6.0.16
- 6.0.15
- 6.0.14
- 6.0.13
- 6.0.12
- 6.0.11
- 6.0.10
Expand All @@ -253,27 +273,12 @@ Redis 6.0.x versions:
- 6.0.1
- 6.0.0

Redis 5.0.x version:

- 5.0.12
- 5.0.11
- 5.0.10
- 5.0.9
- 5.0.8
- 5.0.7
- 5.0.6
- 5.0.5
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0


## Unavailable major versions

The following major versions is no longer available to be downloaded from docker.hub. You can still build and run them directly from this repo.

- 5.0
- 4.0
- 3.2
- 3.0
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
build:
context: .
args:
redis_version: '6.2.1'
redis_version: '7.0.7'
hostname: server
ports:
- '7000-7050:7000-7050'
Expand Down
17 changes: 13 additions & 4 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@
from invoke import task


latest_version_string = "6.2.1"
latest_version_string = "7.0.7"

# Unpublished versions
version_config_mapping = []
version_config_mapping += [f"3.0.{i}" for i in range(0, 8)]
version_config_mapping += [f"3.2.{i}" for i in range(0, 14)]
version_config_mapping += [f"4.0.{i}" for i in range(0, 15)]
version_config_mapping += [f"5.0.{i}" for i in range(0, 13)]
version_config_mapping += [f"6.0.{i}" for i in range(0, 13)]
version_config_mapping += [f"6.2-rc{i}" for i in range(1, 3)]
version_config_mapping += [f"6.2.{i}" for i in range(0, 2)]

# Published versions
version_config_mapping += [f"6.0.{i}" for i in range(0, 17)]
version_config_mapping += [f"6.2.{i}" for i in range(0, 9)]
version_config_mapping += [f"7.0.{i}" for i in range(0, 8)]


def version_name_to_version(version):
Expand Down Expand Up @@ -121,3 +124,9 @@ def push(c, version, cpu=None):
for version in version_name_to_version(version)
],
)


@task
def list(c):
from pprint import pprint
pprint(version_config_mapping, indent=2)

0 comments on commit d597529

Please sign in to comment.