File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,13 @@ FROM centos:7
2
2
LABEL maintainer=
"Swift Infrastructure <[email protected] >"
3
3
LABEL description="Docker Container for the Swift programming language"
4
4
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
6
+ RUN yum install -y centos-release-scl-rh
7
+
5
8
RUN yum install shadow-utils.x86_64 -y \
6
9
binutils \
7
10
gcc \
8
- git \
11
+ rh-git227- git \
9
12
glibc-static \
10
13
libbsd-devel \
11
14
libcurl-devel \
@@ -20,6 +23,9 @@ RUN yum install shadow-utils.x86_64 -y \
20
23
sqlite \
21
24
zlib-devel
22
25
26
+ # centos 7 ships with git 1.x which is too old for the toolchain usage
27
+ RUN ln -s /opt/rh/rh-git227/root/bin/git /usr/bin/git
28
+
23
29
RUN sed -i -e 's/\* __block/\* __libc_block/g' /usr/include/unistd.h
24
30
25
31
# Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little
You can’t perform that action at this time.
0 commit comments