Build bitnami docker images

For HCL Commerce, you must build the Bitnami Redis Docker image and, if you use Elasticsearch-based search, the Bitnami ZooKeeper Docker image before deployment. After building the images, update the image registry, repository, and tag values in the values.yaml file to reference the images in your container registry.

HCL Commerce Version 9.1.21.0 or laterBuilding the bitnami 8.8.0 redis docker image
HCL Commerce Version 9.1.21.0 or later

For HCL Commerce, Bitnami Redis 8.8.0 is certified, and the corresponding Bitnami Redis Helm chart is bundled with the 9.1.21.0 Helm chart. You must build the Redis 8.8.0 Docker image yourself before deployment.

If you use a different certified Bitnami Redis version, you can follow similar steps to build the corresponding Docker image.

  1. Check out or download 8.8.0-debian-12-r3 from GitHub:
    https://github.com/bitnami/containers/tree/731e897f9ddc424284b9aa308c3f264b162c98a5
  2. Navigate to the bitnami/redis/8.8/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 \
    Update it to:
    RUN --mount=type=secret,id=downloads_url \
  4. From the bitnami/redis/8.8/debian-12 directory, run the following command to build the Redis Docker image:
    DOCKER_BUILDKIT=1 docker build -t <your-docker-repo>/bitnami/redis:8.8.0-debian-12-r3 .
    For example:
    DOCKER_BUILDKIT=1 docker build -t ssbenonfeddev.azurecr.io/bitnami/redis:8.8.0-debian-12-r3 .
  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.8.0-debian-12-r3
  6. Deploy Redis.
HCL Commerce Version 9.1.21.0 or later
Building the bitnami zooKeeper docker image (Elasticsearch-based search only)
For HCL Commerce, Bitnami ZooKeeper 3.9.5 is certified, and the corresponding Bitnami ZooKeeper Helm chart is bundled with the 9.1.21.0 Helm chart. You must build the ZooKeeper 3.9.5 Docker image yourself before deployment.
  1. Download the ZooKeeper 3.9.5-debian-12-r0 source code from the Bitnami Containers repository and extract it to a directory.
    https://github.com/bitnami/containers/tree/1d546839a00742aa3105de9addba8e493c507d73
    Example:
    Containers-1d546839a00742aa3105de9addba8e493c507d73
  2. Navigate to the bitnami/zookeeper/3.9/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 \
    Update it to:
    RUN --mount=type=secret,id=downloads_url \
  4. From the bitnami/zookeeper/3.9/debian-12 directory, run the following command to build the ZooKeeper Docker image:
    DOCKER_BUILDKIT=1 docker build -t <your-docker-repo>/bitnami/zookeeper:3.9.5-debian-12-r0 .
    For example:
    DOCKER_BUILDKIT=1 docker build -t ssbenonfeddev.azurecr.io/bitnami/zookeeper:3.9.5-debian-12-r0 .
  5. Update the ZooKeeper Docker image details in the values.yaml file to reference the newly built image.
    Example:
    image:
     registry: mydockerrepo.com
     repository: bitnami/zookeeper
     tag: 3.9.5-debian-12-r0
  6. Deploy ZooKeeper.