Skip to content

Commit

Permalink
CMP-3121: Update OCP dockerfile to be arm64 aware
Browse files Browse the repository at this point in the history
Make it so we can produce content images with datastreams for arm64
systems.
  • Loading branch information
rhmdnd committed Feb 3, 2025
1 parent 28ba1ab commit c216ee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfiles/ocp4_content
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN microdnf -y install cmake make git /usr/bin/python3 python3-pyyaml python3-j
COPY . .

# Enable only certain profiles on ppc64le and s390x
RUN if [ "$(uname -m)" == "x86_64" ]; then \
RUN if [ "$(uname -m)" == "x86_64" ] || [ "$(uname -m)" == "arm64" ]; then \
echo "Building OpenShift and RHCOS content for x86_64"; \
else echo "Building OpenShift content for $(uname -m)" && \
# Disable all profiles first
Expand Down Expand Up @@ -44,7 +44,7 @@ RUN if [ "$(uname -m)" == "x86_64" ]; then \
# Build the OpenShift, EKS, and RHCOS content for x86 architectures. Only build
# OpenShift content for ppc64le and s390x architectures since we're not
# including any RHCOS profiles on those architectures right now anyway.
RUN if [ "$(uname -m)" = "x86_64" ]; then \
RUN if [ "$(uname -m)" = "x86_64" ] || [ "$(uname -m)" == "arm64" ]; then \
./build_product ocp4 rhcos4 eks --datastream-only; \
elif [ "$(uname -m)" = "ppc64le" ]; then \
./build_product ocp4 rhcos4 --datastream-only; \
Expand Down

0 comments on commit c216ee5

Please sign in to comment.