diff --git a/CentOS-Base.repo b/CentOS-Base.repo new file mode 100644 index 0000000000..f89ff26378 --- /dev/null +++ b/CentOS-Base.repo @@ -0,0 +1,17 @@ +[base] +name=CentOS-$releasever - Base +baseurl=http://vault.centos.org/$contentdir/$releasever/os/$basearch/ +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 + +[updates] +name=CentOS-$releasever - Updates +baseurl=http://vault.centos.org/$contentdir/$releasever/updates/$basearch/ +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 + +[extras] +name=CentOS-$releasever - Extras +baseurl=http://vault.centos.org/$contentdir/$releasever/extras/$basearch/ +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index a78f5eaa26..30176da5b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,10 +25,14 @@ # to build an imagine to run in https://github.com/inspirehep/inspirehep FROM centos:7 +# https://www.redhat.com/en/blog/centos-linux-has-reached-its-end-life-eol +# https://serverfault.com/a/1161904 +COPY CentOS-Base.repo ./etc/yum.repos.d/CentOS-Base.repo +RUN yum clean all && yum makecache RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \ - yum update -y && \ - yum install -y \ + yum update -y --nogpgcheck && \ + yum install -y --nogpgcheck \ ImageMagick \ transfig \ file \ diff --git a/Dockerfile.dev b/Dockerfile.dev index b114b1d9e3..a40887db2f 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -25,8 +25,14 @@ # to build an imagine to run in https://github.com/inspirehep/inspirehep FROM centos:7 +# https://www.redhat.com/en/blog/centos-linux-has-reached-its-end-life-eol +# https://serverfault.com/a/1161904 +COPY CentOS-Base.repo ./etc/yum.repos.d/CentOS-Base.repo +RUN yum clean all && yum makecache RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \ + yum update -y --nogpgcheck && \ + yum install -y --nogpgcheck \ yum update -y && \ yum install -y \ ImageMagick \