HCL Commerce Version 9.1.20.0 or laterLinux

Building Bitnami Redis Docker images

Build the Bitnami Redis Docker image for use with HCL Commerce version 9.1.20.0 and later.

About this task

Starting with version 9.1.20.0, you must build the Bitnami Redis Docker image. After building the image, update the image registry, repository, and tag in the values.yaml file to reference the newly built image.

In version 9.1.20.0, Bitnami Redis 8.4.1 is certified, and the corresponding Bitnami Redis Helm chart is bundled with the HCL Commerce Helm chart. If you use a different Bitnami Redis version, you can follow similar steps to build the image.

Procedure

  1. Download the Redis 8.4.1-debian-12-r1 source code from the Bitnami containers repository, extract it to a directory, and navigate to the extracted folder.
    Example:
    containers-83fa2f77482b8f9254384e6e44a670b42e3aa0a9
    https//github.com/bitnami/containers/tree/83fa2f77482b8f9254384e6e44a670b42e3aa0a9
  2. Navigate to the bitnami/redis/8.4/debian-12 directory.
  3. Update the Dockerfile to remove env=SECRET_DOWNLOADS_URL from the following line:
    RUN --mount=type=secret,id=downloads_url,env=SECRET_DOWNLOADS_URL \
  4. From the bitnami/redis/8.4/debian-12 directory, run the following command to build the Redis Docker image:
    DOCKER_BUILDKIT=1 docker build -t <myDockerRepo>/bitnami/redis:8.4.1-debian-12-r1 .
    Example:
    DOCKER_BUILDKIT=1 docker build -t hcldockerrepo.com/bitnami/redis:8.4.1-debian-12-r1 .
  5. Update the Redis Docker image details in the values.yaml file to reference the newly built image.
    Example:
    image:
      registry: mydockerrepo.com
      repository: bitnami/redis
      tag: 8.4.1-debian-12-r1
  6. Redeploy Redis to apply the updated image.