Skip to content

Commit

Permalink
Update Dockerfile-fips
Browse files Browse the repository at this point in the history
  • Loading branch information
phanikumarp authored Sep 13, 2024
1 parent eb887a7 commit 3e56b79
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions docker/ubi8/Dockerfile-fips
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,40 @@ ENV KUBECTL_VERSION=v1.22.0
ENV KUBECTL_RELEASE=1.15.10
ENV AWS_BINARY_RELEASE_DATE=2020-02-22

RUN dnf install -y epel-release

RUN yum install -y \
RUN dnf install -y \
curl \
git \
vim \
wget \
curl \
bzip2 \
tar \
gcc \
gcc-c++ \
make \
bzip2 \
bison \
python3 \
&& yum clean all
&& dnf clean all

# Manually add EPEL repository for additional packages
RUN wget https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/e/epel-release-8.8-1.el8.noarch.rpm \
&& dnf install -y epel-release-8.8-1.el8.noarch.rpm \
&& dnf clean all

# Install additional dependencies including bison
RUN dnf install -y \
bison \
&& dnf clean all

# Download and build glibc
RUN cd /usr/local/src \
&& wget https://ftp.gnu.org/gnu/libc/glibc-2.33.tar.gz \
&& tar -xzf glibc-2.33.tar.gz \
&& cd glibc-2.33 \
&& mkdir build \
&& cd build \
&& ../configure --prefix=/opt/glibc-2.33 \
&& make \
&& make install


#RUN yum -y remove tar vim vi
RUN echo '#!/usr/bin/env bash' > /usr/local/bin/hal && \
Expand Down

0 comments on commit 3e56b79

Please sign in to comment.