Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: add workaround for centos7 version #4345

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CentOS-Base.repo
Original file line number Diff line number Diff line change
@@ -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
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
Loading