[PATCH 19 of 22] docker: simplify docker files

Mads Kiilerich mads at kiilerich.com
Mon May 19 21:10:14 CDT 2014


# HG changeset patch
# User Mads Kiilerich <madski at unity3d.com>
# Date 1400551681 -7200
#      Tue May 20 04:08:01 2014 +0200
# Node ID 33b47ac7a7a12ae934a4c9037fd09aed83475f6b
# Parent  e314e1ed2c21a404ce5e51ee73f7d0fa924026ec
docker: simplify docker files

Less run commands executes faster and is simpler to maintain.

diff --git a/contrib/docker/centos5 b/contrib/docker/centos5
--- a/contrib/docker/centos5
+++ b/contrib/docker/centos5
@@ -1,3 +1,5 @@
 FROM saltstack/centos-5-minimal
+# For building Mercurial
 RUN yum install -y gcc make rpm-build gettext tar
+# For using the OS Python
 RUN yum install -y python-devel python-docutils
diff --git a/contrib/docker/centos6 b/contrib/docker/centos6
--- a/contrib/docker/centos6
+++ b/contrib/docker/centos6
@@ -1,7 +1,5 @@
 FROM centos
-RUN yum install -y gcc
+# For building Mercurial
+RUN yum install -y gcc make rpm-build gettext tar
+# For using the OS Python
 RUN yum install -y python-devel python-docutils
-RUN yum install -y make
-RUN yum install -y rpm-build
-RUN yum install -y gettext
-RUN yum install -y tar
diff --git a/contrib/docker/fedora b/contrib/docker/fedora
--- a/contrib/docker/fedora
+++ b/contrib/docker/fedora
@@ -1,6 +1,5 @@
 FROM fedora
-RUN yum install -y gcc
+# For building Mercurial
+RUN yum install -y gcc make rpm-build gettext tar
+# For using the OS Python
 RUN yum install -y python-devel python-docutils
-RUN yum install -y make
-RUN yum install -y rpm-build
-RUN yum install -y gettext


More information about the Mercurial-devel mailing list