author | Mathias De Maré <mathias.de_mare@nokia.com> |
Mon, 07 Aug 2017 13:38:25 +0200 | |
branch | stable |
changeset 33626 | aa7a3f6e3729 |
parent 23034 | eea2e0f76a24 |
child 34424 | 1baa077214ae |
permissions | -rw-r--r-- |
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 | 5 |
RUN yum install -y gcc make rpm-build gettext tar |
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 | 9 |
RUN yum install -y readline-devel openssl-devel ncurses-devel zlib-devel bzip2-devel |