Skip to content
Snippets Groups Projects
Commit c7536311 authored by Patrick MADELA's avatar Patrick MADELA
Browse files

Fix Centos repo urls

parent 2c3affc0
Branches
No related tags found
No related merge requests found
...@@ -3,12 +3,17 @@ FROM centos:7 ...@@ -3,12 +3,17 @@ FROM centos:7
LABEL maintainer="Patrick Madela <patrick.madela@synchrotron-soleil.fr" LABEL maintainer="Patrick Madela <patrick.madela@synchrotron-soleil.fr"
RUN rm -rf /etc/localtime && ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime \ RUN rm -rf /etc/localtime && ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime \
# Fix Centos repo urls
&& sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* \
&& sed -i 's|#\s*baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* \
# Update OS # Update OS
&& yum -y update \ && yum -y update \
# Install epel repo # Install epel repo
&& yum -y install epel-release \ && yum -y install epel-release \
# Install scl repo # Install scl repo
&& yum -y install centos-release-scl \ && yum -y install centos-release-scl \
&& sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* \
&& sed -i 's|#\s*baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* \
# Install developpement tools # Install developpement tools
&& yum -y groupinstall "Development Tools" \ && yum -y groupinstall "Development Tools" \
# Install compatibility libraries for x86 cross compile # Install compatibility libraries for x86 cross compile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment