Skip to content

Commit 4a213e1

Browse files
committed
Produce RPM packages with SHA256 header digests
Signed-off-by: Evan Lezar <[email protected]>
1 parent 5bb032d commit 4a213e1

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

docker/Dockerfile.rpm-yum

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# This is the dockerfile for building packages on yum-based RPM systems.
1616

1717
ARG BASEIMAGE
18-
FROM ${BASEIMAGE}
18+
FROM ${BASEIMAGE} AS build
1919

2020
# centos:stream8 is EOL.
2121
# We switch to the vault repositories for this base image.
@@ -73,6 +73,26 @@ WORKDIR $DIST_DIR/..
7373
COPY packaging/rpm .
7474
COPY deployments/systemd/ ${DIST_DIR}/
7575

76+
FROM quay.io/centos/centos:stream9
77+
78+
RUN yum install -y \
79+
ca-certificates \
80+
rpm-build && \
81+
rm -rf /var/cache/yum/*
82+
83+
ARG PKG_VERS
84+
ARG PKG_REV
85+
ARG GIT_COMMIT
86+
ENV PKG_VERS ${PKG_VERS}
87+
ENV PKG_REV ${PKG_REV}
88+
ENV GIT_COMMIT ${GIT_COMMIT}
89+
90+
ENV DIST_DIR=/tmp/nvidia-container-toolkit-$PKG_VERS/SOURCES
91+
92+
WORKDIR $DIST_DIR/..
93+
COPY --from=build /tmp/nvidia-container-toolkit-$PKG_VERS .
94+
95+
7696
CMD arch=$(uname -m) && \
7797
rpmbuild --clean --target=$arch -bb \
7898
-D "_topdir $PWD" \

0 commit comments

Comments
 (0)