Mercurial > hg
view contrib/packaging/docker/centos5 @ 42275:730edbd836d8
automation: only iterate over our AMIs
We can't delete AMIs that we don't own. Iterating over other
AMIs won't work and slows down execution.
Differential Revision: https://phab.mercurial-scm.org/D6283
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 19 Apr 2019 05:07:44 -0700 |
parents | 4c0d4bbdc395 |
children |
line wrap: on
line source
FROM centos:centos5 RUN groupadd -g %GID% build && \ useradd -u %UID% -g %GID% -s /bin/bash -d /build -m build RUN \ sed -i 's/^mirrorlist/#mirrorlist/' /etc/yum.repos.d/*.repo && \ sed -i 's/^#\(baseurl=\)http:\/\/mirror.centos.org\/centos/\1http:\/\/vault.centos.org/' /etc/yum.repos.d/*.repo && \ sed -i 's/\$releasever/5.11/' /etc/yum.repos.d/*.repo RUN yum install -y \ gcc \ gettext \ make \ python-devel \ python-docutils \ rpm-build \ tar # For creating repo meta data RUN yum install -y \ bzip2-devel \ createrepo \ ncurses-devel \ openssl-devel \ readline-devel \ zlib-devel