Skip to content

Commit

Permalink
Update centos 8 dockerfile to handle EOL issue [skip ci] (#4709)
Browse files Browse the repository at this point in the history
* Update centos 8 dockerfile to handle EOL issue

Signed-off-by: Peixin Li <pxli@nyu.edu>

* update copyright
  • Loading branch information
pxLi authored Feb 9, 2022
1 parent c8b3917 commit 7a99707
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jenkins/Dockerfile-blossom.integration.centos
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2020-2022, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -26,10 +26,16 @@
ARG CUDA_VER=11.0
ARG CENTOS_VER=7
FROM nvidia/cuda:${CUDA_VER}-runtime-centos${CENTOS_VER}
ARG CENTOS_VER
ARG CUDA_VER
ARG CUDF_VER
ARG URM_URL

# centOS 8 went EOL, use vault.centos.org to avoid "No URLs in mirrorlist"
RUN if [ "$CENTOS_VER" == "8" ]; then\
sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-* &&\
sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*;\
fi
# Install jdk-8, jdk-11, maven, docker image
RUN yum update -y && \
yum install epel-release -y && \
Expand Down

0 comments on commit 7a99707

Please sign in to comment.