summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-07-09 17:45:46 +0200
committerGitHub <noreply@github.com>2021-07-09 15:45:46 +0000
commit2a858f8f3d18ac22eff6ceccb3ceb44e5ad93486 (patch)
treece038dc4f22a43b8ea7dfc30a0a67d44d3e95b66 /share
parent0edc55adc2356cf2d953a17d74eb18a5e1300c91 (diff)
downloadspack-2a858f8f3d18ac22eff6ceccb3ceb44e5ad93486.tar.gz
spack-2a858f8f3d18ac22eff6ceccb3ceb44e5ad93486.tar.bz2
spack-2a858f8f3d18ac22eff6ceccb3ceb44e5ad93486.tar.xz
spack-2a858f8f3d18ac22eff6ceccb3ceb44e5ad93486.zip
docker: Fix CentOS 6 build on Docker Hub (#24804)
This change make yum usable again on CentOS 6
Diffstat (limited to 'share')
-rw-r--r--share/spack/docker/centos-6.dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/spack/docker/centos-6.dockerfile b/share/spack/docker/centos-6.dockerfile
index 1ba58d66af..f192c54427 100644
--- a/share/spack/docker/centos-6.dockerfile
+++ b/share/spack/docker/centos-6.dockerfile
@@ -9,6 +9,9 @@ ENV DOCKERFILE_BASE=centos \
CURRENTLY_BUILDING_DOCKER_IMAGE=1 \
container=docker
+# Make yum usable again with CentOS 6
+RUN curl https://www.getpagespeed.com/files/centos6-eol.repo --output /etc/yum.repos.d/CentOS-Base.repo
+
RUN yum update -y \
&& yum install -y epel-release \
&& yum update -y \