When using the API gateway documentation to create a derived image.
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.
Gateway 11.x container image
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.