contrib/docker/centos5
author Mathias De Maré <mathias.de_mare@nokia.com>
Mon, 07 Aug 2017 13:38:25 +0200
branchstable
changeset 33626 aa7a3f6e3729
parent 23034 eea2e0f76a24
child 34424 1baa077214ae
permissions -rw-r--r--
centos5: use vault urls CentOS 5 has reached end-of-life. A working build for it is still possible using 'vault.centos.org'. Differential Revision: https://phab.mercurial-scm.org/D261
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
23034
eea2e0f76a24 docker: use official centos5 image
Mads Kiilerich <madski@unity3d.com>
parents: 22444
diff changeset
     1
FROM centos:centos5
33626
aa7a3f6e3729 centos5: use vault urls
Mathias De Maré <mathias.de_mare@nokia.com>
parents: 23034
diff changeset
     2
RUN sed -i 's/^mirrorlist/#mirrorlist/' /etc/yum.repos.d/*.repo
aa7a3f6e3729 centos5: use vault urls
Mathias De Maré <mathias.de_mare@nokia.com>
parents: 23034
diff changeset
     3
RUN sed -i 's/^#\(baseurl=\)http:\/\/mirror.centos.org\/centos/\1http:\/\/vault.centos.org/' /etc/yum.repos.d/*.repo
aa7a3f6e3729 centos5: use vault urls
Mathias De Maré <mathias.de_mare@nokia.com>
parents: 23034
diff changeset
     4
RUN sed -i 's/\$releasever/5.11/' /etc/yum.repos.d/*.repo
22443
d8818616c45e docker: add CentOS 5
Mads Kiilerich <madski@unity3d.com>
parents:
diff changeset
     5
RUN yum install -y gcc make rpm-build gettext tar
d8818616c45e docker: add CentOS 5
Mads Kiilerich <madski@unity3d.com>
parents:
diff changeset
     6
RUN yum install -y python-devel python-docutils
22444
49ea49823769 dockerrpm: create a yum/dnf repo from the generated rpms
Mads Kiilerich <madski@unity3d.com>
parents: 22443
diff changeset
     7
# For creating repo meta data
49ea49823769 dockerrpm: create a yum/dnf repo from the generated rpms
Mads Kiilerich <madski@unity3d.com>
parents: 22443
diff changeset
     8
RUN yum install -y createrepo
22443
d8818616c45e docker: add CentOS 5
Mads Kiilerich <madski@unity3d.com>
parents:
diff changeset
     9
RUN yum install -y readline-devel openssl-devel ncurses-devel zlib-devel bzip2-devel