Giter VIP home page Giter VIP logo

redis-docker's Introduction

CircleCI Dockerhub Dockerhub

Redis Docker container

Images

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" ]

Building

$ 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

Building on x64 (native/cross builds)

When building on x64, it's possible to build images for x64 (natively), arm64v8 and arm32v7 (via cross-build).

Typical build/publish sessions:

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

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" ] 

From original repo:

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.

See a change merged here that doesn't show up on Docker Hub yet?

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 badge
  • build status badge
Build Status Badges (per-arch)
amd64 build status badge arm32v5 build status badge arm32v6 build status badge arm32v7 build status badge
arm64v8 build status badge i386 build status badge mips64le build status badge ppc64le build status badge
s390x build status badge put-shared build status badge

redis-docker's People

Contributors

tianon avatar rafie avatar yosifkit avatar docker-library-bot avatar gkorland avatar j0wi avatar tao12345666333 avatar timwolla avatar michael-k avatar alexellis avatar gerardorochin avatar voxxit avatar encodeering avatar peterdavehello avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.