Build bitnami docker images

For Commerce+, you must build the Bitnami Redis docker image and Bitnami ZooKeeper ( if you use Elasticsearch-based search) docker image by themself before deployment. After building the images, update the image registry, repository, and tag value in the values.yaml file referring the images in your container registry.

Building the bitnami redis docker image

For HCL Commerce+ 26.07.22.0, Bitnami redis 8.8.0 is certified, and the corresponding Bitnami redis helm chart is bundled with the 26.07.22.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, follow the same procedure using the corresponding source.

  1. Download or clone 8.8.0-debian-12-r3 from github
    https://github.com/bitnami/containers/commit/731e897f9ddc424284b9aa308c3f264b162c98a5
  2. Navigate to the Redis source directory: bitnami/redis/8.8/debian-12
  3. Update the Dockerfile and remove the 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. Build the Redis Docker image.
    DOCKER_BUILDKIT=1 docker build -t <your-docker-repository>/bitnami/redis:8.8.0-debian-12-r3 .
    Example:
    DOCKER_BUILDKIT=1 docker build -t ssbenonfeddev.azurecr.io/bitnami/redis:8.8.0-debian-12-r3 .
  5. Update the Redis image configuration in the values.yaml file.
    image:
      registry: mydockerrepo.com
      repository: bitnami/redis
      tag: 8.8.0-debian-12-r3
  6. Deploy Redis.
Building the bitnami zooKeeper docker image (Elasticsearch-based search only)

If you use Elasticsearch-based search, you must also build the Bitnami ZooKeeper Docker image.

For HCL Commerce+ 26.07.22.0, Bitnami ZooKeeper 3.9.5 is certified, and the corresponding Bitnami ZooKeeper Helm chart is bundled with the 26.07.22.0 Helm chart.

  1. Download or Clone zookeeper 3.9.5-debian-12-r0 source code from github for containers-1d546839a00742aa3105de9addba8e493c507d73:
    https://github.com/bitnami/containers/tree/1d546839a00742aa3105de9addba8e493c507d73
  2. Navigate to the ZooKeeper source directory: bitnami/zookeeper/3.9/debian-12
  3. Inside debian-12 folder update the Dockerfile and remove the env=SECRET_DOWNLOADS_URL option 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. Build the Zookeeper Docker image by running the following command from the bitnami/zookeeper/3.9/debian-12 directory.
    DOCKER_BUILDKIT=1 docker build -t <your-docker-repository>/bitnami/zookeeper:3.9.5-debian-12-r0 .
    Example:
    DOCKER_BUILDKIT=1 docker build -t ssbenonfeddev.azurecr.io/bitnami/zookeeper:3.9.5-debian-12-r0 .
  5. Update the ZooKeeper image configuration in the values.yaml file.
    image:
      registry: mydockerrepo.com
      repository: bitnami/zookeeper
      tag: 3.9.5-debian-12-r0
  6. Deploy ZooKeeper.
Note:
  • Redis is required for all HCL Commerce+ deployments.
  • ZooKeeper is required only when using Elasticsearch-based search.
  • Ensure that the registry, repository, and tag values in values.yaml match the images that you built and pushed to your container registry.
  • After updating values.yaml, deploy or upgrade your Helm release to use the new images.