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.
- Download or clone 8.8.0-debian-12-r3 from
github
https://github.com/bitnami/containers/commit/731e897f9ddc424284b9aa308c3f264b162c98a5 - Navigate to the Redis source directory: bitnami/redis/8.8/debian-12
- Update the Dockerfile and remove the
env=SECRET_DOWNLOADS_URLfrom the following line
Update it to:RUN --mount=type=secret,id=downloads_url,env=SECRET_DOWNLOADS_URL \RUN --mount=type=secret,id=downloads_url \ - Build the Redis Docker
image.
Example:DOCKER_BUILDKIT=1 docker build -t <your-docker-repository>/bitnami/redis:8.8.0-debian-12-r3 .DOCKER_BUILDKIT=1 docker build -t ssbenonfeddev.azurecr.io/bitnami/redis:8.8.0-debian-12-r3 . - Update the Redis image configuration in the
values.yamlfile.image: registry: mydockerrepo.com repository: bitnami/redis tag: 8.8.0-debian-12-r3 - Deploy Redis.
- Download or clone 8.8.0-debian-12-r3 from
github
- 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.
- Download or Clone zookeeper 3.9.5-debian-12-r0 source code from github
for containers-1d546839a00742aa3105de9addba8e493c507d73:
https://github.com/bitnami/containers/tree/1d546839a00742aa3105de9addba8e493c507d73 - Navigate to the ZooKeeper source directory: bitnami/zookeeper/3.9/debian-12
- Inside debian-12 folder update the Dockerfile and remove the
env=SECRET_DOWNLOADS_URLoption from the following line :
Update it to:RUN --mount=type=secret,id=downloads_url,env=SECRET_DOWNLOADS_URL \RUN --mount=type=secret,id=downloads_url \ - Build the Zookeeper Docker image by running the following command from
the
bitnami/zookeeper/3.9/debian-12directory.
Example:DOCKER_BUILDKIT=1 docker build -t <your-docker-repository>/bitnami/zookeeper:3.9.5-debian-12-r0 .DOCKER_BUILDKIT=1 docker build -t ssbenonfeddev.azurecr.io/bitnami/zookeeper:3.9.5-debian-12-r0 . - Update the ZooKeeper image configuration in the
values.yamlfile.image: registry: mydockerrepo.com repository: bitnami/zookeeper tag: 3.9.5-debian-12-r0 - Deploy ZooKeeper.
- Download or Clone zookeeper 3.9.5-debian-12-r0 source code from github
for containers-1d546839a00742aa3105de9addba8e493c507d73:
- Redis is required for all HCL Commerce+ deployments.
- ZooKeeper is required only when using Elasticsearch-based search.
- Ensure that the
registry,repository, andtagvalues invalues.yamlmatch 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.