File tree Expand file tree Collapse file tree 2 files changed +35
-6
lines changed
Expand file tree Collapse file tree 2 files changed +35
-6
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ ARG BASE=centos:7
22FROM ${BASE} AS yum
33RUN yum install -y \
44 which \
5+ bzip2 \
56 git \
67 libarchive \
78 gcc \
@@ -20,17 +21,32 @@ RUN cd /tmp && \
2021 cd libssh2-1.8.0 && \
2122 ./configure && \
2223 make && \
23- make install
24+ make install && \
25+ cd .. && \
26+ rm -rf libssh-1.8.0
2427
25- FROM libssh2 AS cmake
28+ FROM libssh2 AS valgrind
29+ RUN cd /tmp && \
30+ curl --insecure --location --silent --show-error https://sourceware.org/pub/valgrind/valgrind-3.15.0.tar.bz2 | \
31+ tar -xj && \
32+ cd valgrind-3.15.0 && \
33+ ./configure && \
34+ make MAKEFLAGS="-j -l$(grep -c ^processor /proc/cpuinfo)" && \
35+ make install && \
36+ cd .. && \
37+ rm -rf valgrind-3.15.0
38+
39+ FROM valgrind AS cmake
2640RUN cd /tmp && \
2741 curl -L https://github.com/Kitware/CMake/releases/download/v3.21.1/cmake-3.21.1.tar.gz | tar -xz && \
2842 cd cmake-3.21.1 && \
2943 ./configure && \
3044 make && \
31- make install
45+ make install && \
46+ cd .. && \
47+ rm -rf cmake-3.21.1
3248
33- FROM libssh2 AS adduser
49+ FROM cmake AS adduser
3450RUN useradd --shell /bin/bash libgit2 --create-home
3551
3652FROM adduser AS configure
Original file line number Diff line number Diff line change @@ -22,9 +22,22 @@ RUN cd /tmp && \
2222 cd libssh2-1.8.0 && \
2323 ./configure && \
2424 make && \
25- make install
25+ make install && \
26+ cd .. && \
27+ rm -rf libssh2-1.8.0
2628
27- FROM libssh2 AS adduser
29+ FROM libssh2 AS valgrind
30+ RUN cd /tmp && \
31+ curl --insecure --location --silent --show-error https://sourceware.org/pub/valgrind/valgrind-3.15.0.tar.bz2 | \
32+ tar -xj && \
33+ cd valgrind-3.15.0 && \
34+ CC=clang-10 ./configure && \
35+ make MAKEFLAGS="-j -l$(grep -c ^processor /proc/cpuinfo)" && \
36+ make install && \
37+ cd .. && \
38+ rm -rf valgrind-3.15.0
39+
40+ FROM valgrind AS adduser
2841RUN useradd --shell /bin/bash libgit2 --create-home
2942
3043FROM adduser AS configure
You can’t perform that action at this time.
0 commit comments