mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-25 17:34:33 +00:00
Add Docker targets that build the existing RPM packages in an isolated Rocky Linux 10.2 environment. Keep the source worktree read-only, derive the target kernel from the installed kernel-devel package and export only verified RPM and source RPM artifacts.
34 lines
683 B
Docker
34 lines
683 B
Docker
FROM rockylinux/rockylinux:10.2
|
|
|
|
ENV LANG=C \
|
|
LC_ALL=C
|
|
|
|
RUN dnf -y install \
|
|
bzip2 \
|
|
elfutils-libelf-devel \
|
|
findutils \
|
|
gcc \
|
|
git \
|
|
kernel \
|
|
kernel-devel \
|
|
kernel-headers \
|
|
kmod \
|
|
make \
|
|
openssl \
|
|
perl \
|
|
perl-Data-Dumper \
|
|
perl-devel \
|
|
perl-ExtUtils-MakeMaker \
|
|
redhat-rpm-config \
|
|
rpm-build \
|
|
systemd-rpm-macros \
|
|
tar \
|
|
which \
|
|
&& dnf clean all \
|
|
&& rm -rf /var/cache/dnf
|
|
|
|
COPY build-rpm /usr/local/bin/build-scst-rpm
|
|
RUN chmod 0755 /usr/local/bin/build-scst-rpm
|
|
|
|
ENTRYPOINT ["/usr/local/bin/build-scst-rpm"]
|