Skip to content

Commit c7f4a1b

Browse files
authored
Apply suggestions from code review
1 parent a807792 commit c7f4a1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nightly-main/centos/7/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM centos:7
22
LABEL maintainer="Swift Infrastructure <[email protected]>"
33
LABEL description="Docker Container for the Swift programming language"
44

5+
# centos 7 ships with git 1.x which is too old for the toolchain usage, using RH software collections to install git 2.x
56
RUN yum install -y centos-release-scl-rh
67

78
RUN yum install shadow-utils.x86_64 -y \
@@ -22,6 +23,7 @@ RUN yum install shadow-utils.x86_64 -y \
2223
sqlite \
2324
zlib-devel
2425

26+
# centos 7 ships with git 1.x which is too old for the toolchain usage
2527
RUN ln -s /opt/rh/rh-git227/root/bin/git /usr/bin/git
2628

2729
RUN sed -i -e 's/\*__block/\*__libc_block/g' /usr/include/unistd.h

0 commit comments

Comments
 (0)