Skip to content

Commit 706675f

Browse files
committed
RHOAIENG-33414: replace dnf with rpm2cpio in codeserver/ubi9-python-3.12 to handle unsigned RPM errors in Konflux (#2356)
1 parent feb1536 commit 706675f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

codeserver/ubi9-python-3.12/Dockerfile.cpu

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,14 @@ COPY --from=rpm-base /tmp/control /dev/null
134134

135135
# Install code-server
136136
# Note: Use cache mounts, bind mounts fail on konflux
137+
# https://redhat-internal.slack.com/archives/C04PZ7H0VA8/p1755628065772589?thread_ts=1755597929.335999&cid=C04PZ7H0VA8
137138
RUN --mount=type=cache,from=rpm-base,source=/tmp/,target=/code-server-rpm/,rw \
138-
dnf install -y "/code-server-rpm/code-server-${CODESERVER_VERSION/v/}-${TARGETARCH}.rpm" && \
139-
dnf -y clean all --enablerepo='*'
139+
# EXPLANATION: dnf installation produces an "unsigned rpm" error from Konflux (Conforma)
140+
# since we're building rpm from source, we will simply unpack it over /
141+
# dnf install -y "/code-server-rpm/code-server-${CODESERVER_VERSION/v/}-${TARGETARCH}.rpm"
142+
# dnf -y clean all --enablerepo='*'
143+
dnf install -y cpio && dnf -y clean all && \
144+
cd / && rpm2cpio "/code-server-rpm/code-server-${CODESERVER_VERSION/v/}-${TARGETARCH}.rpm" | cpio -idmv
140145

141146
COPY --chown=1001:0 ${CODESERVER_SOURCE_CODE}/utils utils/
142147

0 commit comments

Comments
 (0)