Skip to content

Commit abb3700

Browse files
committed
fBuild the latest cmake-3.10 for linux docker image
1 parent 1351428 commit abb3700

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docker/Dockerfile.centos5-linux-x86_64-pic

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,19 @@ RUN sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf
55
RUN sed -i 's/mirrorlist/#mirrorlist/' /etc/yum.repos.d/*.repo
66
RUN sed -i 's|#baseurl=http://mirror.centos.org/centos/$releasever|baseurl=http://vault.centos.org/5.11|' /etc/yum.repos.d/*.repo
77

8-
RUN yum -y install make gcc gcc-c++ glibc-devel perl wget bzip2 curl cmake \
8+
RUN yum -y install make gcc gcc-c++ glibc-devel perl wget bzip2 curl \
99
&& rm -rf /var/lib/apt/lists/*
1010

11+
RUN mkdir /tmp/cmake \
12+
&& cd /tmp/cmake \
13+
&& wget https://cmake.org/files/v3.10/cmake-3.10.0.tar.gz \
14+
&& tar xvfz cmake-3.10.0.tar.gz \
15+
&& cd cmakd-3.10.0 \
16+
&& ./bootstrap \
17+
&& make \
18+
&& make install \
19+
&& rm -rf /tmp/cmake
20+
1121
RUN mkdir /tmp/work \
1222
&& cd /tmp/work \
1323
&& wget http://www.netgull.com/gcc/releases/gcc-4.8.3/gcc-4.8.3.tar.gz \

0 commit comments

Comments
 (0)