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

vagrant: Fix CentOS6 mirrorlink issue #1765

Merged
merged 2 commits into from
Dec 17, 2020
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
4 changes: 3 additions & 1 deletion ansible/Dockerfile.CentOS6
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ FROM centos:6.9
ARG user=jenkins

# Install Python 3
RUN yum -y update; yum clean all; \
RUN sed -i -e 's!mirrorlist!#mirrorlist!g' /etc/yum.repos.d/CentOS-Base.repo; \
sed -i -e 's!#baseurl=http://mirror.centos.org/centos/\$releasever!baseurl=https://vault.centos.org/6.10/!g' /etc/yum.repos.d/CentOS-Base.repo; \
yum -y update; yum clean all; \
yum -y install gcc openssl-devel bzip2-devel sqlite-devel sudo wget; \
cd /usr/src; \
wget -q https://www.python.org/ftp/python/3.6.10/Python-3.6.10.tgz; \
Expand Down
2 changes: 2 additions & 0 deletions ansible/Vagrantfile.CentOS6
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# vi: set ft=ruby :

$script = <<SCRIPT
sudo sed -i -e 's!mirrorlist!#mirrorlist!g' /etc/yum.repos.d/CentOS-Base.repo
sudo sed -i -e 's!#baseurl=http://mirror.centos.org/centos/\$releasever!baseurl=https://vault.centos.org/6.10/!g' /etc/yum.repos.d/CentOS-Base.repo
sudo yum -y update
sudo yum install -y libselinux-python
sudo yum install -y ansible
Expand Down