
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
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
-
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:
https//github.com/bitnami/containers/tree/83fa2f77482b8f9254384e6e44a670b42e3aa0a9containers-83fa2f77482b8f9254384e6e44a670b42e3aa0a9 -
Navigate to the
bitnami/redis/8.4/debian-12directory. -
Update the
Dockerfileto removeenv=SECRET_DOWNLOADS_URLfrom the following line:RUN --mount=type=secret,id=downloads_url,env=SECRET_DOWNLOADS_URL \ -
From the
bitnami/redis/8.4/debian-12directory, run the following command to build the Redis Docker image:
Example:DOCKER_BUILDKIT=1 docker build -t <myDockerRepo>/bitnami/redis:8.4.1-debian-12-r1 .DOCKER_BUILDKIT=1 docker build -t hcldockerrepo.com/bitnami/redis:8.4.1-debian-12-r1 . -
Update the Redis Docker image details in the
values.yamlfile to reference the newly built image.Example:image: registry: mydockerrepo.com repository: bitnami/redis tag: 8.4.1-debian-12-r1 - Redeploy Redis to apply the updated image.