Docker images generated by this repo named redisfab/redis:$VERSION-$ARCH-$OSNICK
, where typical parametrized values are:
VERSION=5.0.10|6.0.9
ARCH=x64|arm64v8|arm32v7
OSNICK=focal|bionic|xenial|trusty|centos7|stretch|buster
Cross-builds generate images named redisfab/redis-xbuild:$VERSION-$ARCH-$OSNICK
, which in turn allow preforming cross-builds, e.g.:
FROM redisfab/redis-xbuild:${VERSION}-${ARCH}-${OSNICK}
RUN [ "cross-build-start" ]
# Build commands
RUN [ "cross-build-end" ]
$ make help
make [build|publish] [CROSS=1] [X64=1|ARM8=1|ARM7=1] [OSNICK=<nick> | OS=<os>] [VERSION=<ver>] [ARGS...]
build Build image(s)
publish Push image(s) to Docker Hub
commons Build common versions (with DO="<operations>")
Arguments:
CROSS=1 Perform cross-platform builds (typically, ARM7/8 on x64)
OSNICK buster|stretch|xenial|bionic|centos6|centos7|centos8|fedora30
OS (optional) OS Docker image name (e.g., debian:buster-slim)
VERSION Redis version (e.g. 6.0.9)
MASTER=1 Build sources from master branch ("edge" version)
LATEST=1 Build the latest version of branch given by VERSION
TEST=1 Run tests after build
CACHE=0 Build without cache
When building on x64, it's possible to build images for x64 (natively), arm64v8 and arm32v7 (via cross-build).
From a x64 system, build redis:6.0.9-x64-bionic
, redis-xbuild:6.0.9-arm64x8-bionic
, redis-xbuild:6.0.9-arm32x7-bionic
:
$ make build CROSS=1 OSNICK=bionic VERSION=6.0.9
From a x64 system, build redis:6.0.9-x64-bionic
:
$ make build X64=1 OSNICK=bionic VERSION=6.0.9
From an arm64v8 (aarch64) system, build redis:6.0.9-arm64v8-bionic
:
$ make build OSNICK=bionic VERSION=6.0.9
Native builds produce images of architectures that correspond to the build platform's architecture. Such builds always generate redisfab/redis:$VERSION-$ARCH-$OSNICK
images.
One can use the following Dockerfile excerpt to perform cross-build:
FROM redisfab/redis:${VERSION}-${ARCH}-${OSNICK} AS redis
FROM redisfab/xbuild:${ARCH}-${OS} AS builder
RUN [ "cross-build-start" ]
# Build commands
RUN [ "cross-build-end" ]
https://github.com/docker-library/redis
Maintained by: the Docker Community
This is the Git repo of the Docker "Official Image" for redis
(not to be confused with any official redis
image provided by redis
upstream). See the Docker Hub page for the full readme on how to use this Docker image and for information regarding contributing and issues.
The full image description on Docker Hub is generated/maintained over in the docker-library/docs repository, specifically in the redis
directory.
For more information about the full official images change lifecycle, see the "An image's source changed in Git, now what?" FAQ entry.
For outstanding redis
image PRs, check PRs with the "library/redis" label on the official-images repository. For the current "source of truth" for redis
, see the library/redis
file in the official-images repository.
Build | Status | Badges | (per-arch) |
---|---|---|---|