Created
October 22, 2021 20:26
-
-
Save jrwren/5f6f66162b344b84b48eb244632cdf17 to your computer and use it in GitHub Desktop.
Centos6 resurrection Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:6.7 | |
RUN sed -i 's/#baseurl=http:\/\/mirror/baseurl=http:\/\/vault/;s/mirrorlist/#mirrorlist/' /etc/yum.repos.d/CentOS-Base.repo ;\ | |
curl -LO https://archive.kernel.org/centos-vault/6.10/updates/x86_64/Packages/ca-certificates-2020.2.41-65.1.el6_10.noarch.rpm ;\ | |
rpm -U ./ca-cert*.rpm ;\ | |
rm ca-cert*.rpm ;\ | |
yum -y upgrade ;\ | |
yum install -y yum-utils perl-devel perl-ExtUtils-Embed GeoIP-devel bc \ | |
rpm-build make gcc tar git autoconf automake libtool openssl-devel \ | |
zlib-devel pcre-devel epel-release ;\ | |
yum -y install GeoIP-devel ;\ | |
yum -y clean all && rm -rf /var/cache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment