Skip to content

Instantly share code, notes, and snippets.

@Kungergely
Created December 30, 2019 11:23
Show Gist options
  • Save Kungergely/4a55c5668f1f0942625f67e012215502 to your computer and use it in GitHub Desktop.
Save Kungergely/4a55c5668f1f0942625f67e012215502 to your computer and use it in GitHub Desktop.
Dockerfile for building openssl-static-1.1.1-8.el8.x86_64.rpm for CentOS 8
FROM centos:8
RUN mkdir -p /root/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
RUN dnf -y --nogpgcheck install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm wget zip unzip bzip2 gcc gcc-c++ rpm-build make krb5-devel perl-interpreter zlib-devel lksctp-tools-devel perl-podlators perl-Test-Harness perl-Math-BigInt perl-Module-Load-Conditional perl-File-Temp perl-Time-HiRes perl-CPAN perl-Test-Simple
COPY openssl-1.1.1-8.el8.src.rpm /root/rpmbuild/
RUN cd /root/rpmbuild/ && \
rpmbuild --rebuild openssl-1.1.1-8.el8.src.rpm
# Resulting RPM packages:
# /root/rpmbuild/RPMS/x86_64/openssl-1.1.1-8.el8.x86_64.rpm
# /root/rpmbuild/RPMS/x86_64/openssl-libs-1.1.1-8.el8.x86_64.rpm
# /root/rpmbuild/RPMS/x86_64/openssl-devel-1.1.1-8.el8.x86_64.rpm
# /root/rpmbuild/RPMS/x86_64/openssl-static-1.1.1-8.el8.x86_64.rpm
# /root/rpmbuild/RPMS/x86_64/openssl-perl-1.1.1-8.el8.x86_64.rpm
# /root/rpmbuild/RPMS/x86_64/openssl-debugsource-1.1.1-8.el8.x86_64.rpm
# /root/rpmbuild/RPMS/x86_64/openssl-debuginfo-1.1.1-8.el8.x86_64.rpm
# /root/rpmbuild/RPMS/x86_64/openssl-libs-debuginfo-1.1.1-8.el8.x86_64.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment