]> granicus.if.org Git - graphviz/commitdiff
Install git version 2 instead of version 1 in Centos 7 Docker image
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Mon, 12 Oct 2020 15:34:29 +0000 (17:34 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Thu, 15 Oct 2020 16:10:45 +0000 (18:10 +0200)
The option --date=format-local:... used in gen_version.py is not
supported in git version 1.

ci/centos7/Dockerfile

index 6ae828c6ceac76b81797a17ccba166ca6ad26719..fd96e75e84f6632f7e51c169ad9db0adbcb634b8 100644 (file)
@@ -6,14 +6,21 @@ RUN yum -y groupinstall 'Development Tools'
 RUN yum install -y \
 # Install epel-release rpm (Needed for cmake3. Must be a separate step)
 https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-12.noarch.rpm \
+# Install ius-release rpm (Needed for git version 2. Must be a separate step)
+https://repo.ius.io/ius-release-el7.rpm \
 && yum clean all && rm -rf /var/cache/yum
 
+# Remove old version of git
+RUN yum -y remove git
+
 # Centos build utilities
 RUN yum -y install \
 libtool-ltdl-devel \
 libedit-devel \
 ksh \
 cmake3 \
+# Git version 2 needed to get the option --date=format-local:... used in gen_version.py
+https://repo.ius.io/7/x86_64/packages/g/git224-2.24.3-1.el7.ius.x86_64.rpm \
 # Option glut
 freeglut-devel \
 # Option gts