Unable to create custom Container GW 11 image using the steps in the documentation
search cancel

Unable to create custom Container GW 11 image using the steps in the documentation

book

Article ID: 371609

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

When using the  API gateway documentation to create a derived image.

https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-api-management/api-gateway/congw-11-0/install-configure-upgrade/configuring-the-container-gateway/customize-the-container-gateway.html

to create a customize container image there is a problem with the localedef command .

RUN localedef -c -i en_US -f UTF-8 en_US.UTF-8 --quiet

This command is not working in the container gateway platform and the build process fails.

Environment

Gateway 11.x container image

Resolution

This is  a issue due to a missing library on the redhat UBI image which we use for the container gateway .

Install the required glib-langpack-XX while building the container.

If the requirement is to set the default locale as en_US.utf8, then install the package glibc-langpack-en.

Example:

FROM registry.access.redhat.com/ubi8/ubi-minimal:8.1
RUN microdnf install glibc-langpack-en; sed -i 's/^LANG=.*/LANG="en_US.utf8"/' /etc/locale.conf
set ENV LANG=en_US.utf8

Note: For UBI 8 image (not minimal), use yum/dnf command instead of microdnf command.

To find all the available langpack, execute the command yum search glibc-langpack'. With UBI 8 repos, onlyglibc-langpack-en` is shipped.

So to find all the available packages, execute yum search on a registered RHEL node.