0

I have a container file that uses the base image of fedora 37. I want to install some python libraries and some of them require gssapi. I know that gssapi requires krb5-devel. I have a step to install that and I can confirm that it works by calling krb5-config. However, while building the container (using Kaniko) it hit the issue of incompleted installation of gssapi because krb5-config was not found. I could build my container fine locally using podman/buildar but when pushing my code to GitLab and using Kaniko to build the container, it failed. I doubt if it is because of Kaniko.

Here is my container file:

FROM fedora:37

USER root
WORKDIR /opt/workspace

RUN dnf install -y createrepo_c \
                   krb5-devel \
                   python3-pip \
                   python3-devel \
                   tree \
                   diffutils \
                   git \
                   gcc
RUN krb5-config
COPY *requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt -r test_requirements.txt

I also tried to install heimdal-devel and did the symblink RUN ln -s /usr/bin/heimdal-krb5-config /usr/bin/krb5-config but it doesn't help at all.

Jane
  • 151
  • 3
  • 12

0 Answers0