summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-07-09 17:45:46 +0200
committerGreg Becker <becker33@llnl.gov>2021-09-21 16:58:41 -0700
commit073c92d526949d8f91b6f556456cf89c649f188d (patch)
tree022c7ad1d3f5be3ec1073499d31804f1fe179b46
parent0e85d7011eb21e17252c114141531be380d38ed3 (diff)
downloadspack-073c92d526949d8f91b6f556456cf89c649f188d.tar.gz
spack-073c92d526949d8f91b6f556456cf89c649f188d.tar.bz2
spack-073c92d526949d8f91b6f556456cf89c649f188d.tar.xz
spack-073c92d526949d8f91b6f556456cf89c649f188d.zip
docker: Fix CentOS 6 build on Docker Hub (#24804)
This change make yum usable again on CentOS 6
-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 \