Build mongodb5 image for Component Pack with Buildah

Last Update:

Author: Christoph Stoettner
Read in about 2 min · 309 words


Photo by Artem Labunsky | Unsplash

To install the Component Pack for HCL Connections 8, you need to create a Mongodb5 image. The image sources can be found in the HCL MongoDB repository , and the process for creating the image is documented in Installing MongoDB5 for Component Pack 8 . The process involves using Docker, so if you have it installed, you can follow the instructions provided.

Note that after Kubernetes 1.20, the container engine has been changed to containerd , and Redhat-based systems now prefer podman over Docker. If you want to build container images for podman or Kubernetes/containerd, you can use buildah , which can be installed directly from the official repositories. Installing Docker just for the image creation installs the Docker service and needs resources. Most of the time, buildah is my way to go here.

Podman can be aliased to docker and you can use all the commands you already know with. One of the differences is that podman doesn’t use a service and there is no need to run it as root.

Install buildah

sudo dnf install buildah

Clone Repository

git clone

Create image

cd connections-mongo5
buildah bud -t .

Export image as tar file

buildah push --format oci oci-archive:middleware-mongodb5_20230329-171549.tar

Now we can copy the image file to the Kubernetes nodes and import with ctr, or push to a registry.

ctr image import --digests=true middleware-mongodb5_20230329-171549.tar

Check the imported image:

ctr image ls | grep mongodb5

When the image has no tag after importing it, you can tag with ctr:

ctr image tag import-2023-05-08@sha256:7d2f5e93a6cebcd29b10b79d5d84f1c41383aaf52db3c14ccd9eff3af7d125d9  \

The process is a bit complicated, and when you install with connections-automation you have to run the installation at least twice and the image needs to be imported on each worker node. So, my next task will be a new role to create the image during the installation.

Add a comment
There was an error sending your comment, please try again.
Thank you!
Your comment has been submitted and will be published once it has been approved.

Your email address will not be published. Required fields are marked with *

Suggested Reading
Card image cap

During a troubleshooting session in Component Pack, I checked the Kubernetes events.

Created: Read in about 3 min
Aaron Burden: Fountain pen and a notebook

Time is running very fast and I completely forgot to update the blog for a long time.

What happened since DNUG Day 2020 ?

Last Update:
Read in about 2 min
Card image cap

Last week I attended Social Connections 14 in Berlin, the event location had a great view and weather was great.

Last Update:
Read in about 1 min