Skip to content

Commit d441662

Browse files
committed
ci: update centos builds
1 parent 5ad53ec commit d441662

File tree

2 files changed

+35
-6
lines changed

2 files changed

+35
-6
lines changed

ci/docker/centos7

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ ARG BASE=centos:7
22
FROM ${BASE} AS yum
33
RUN 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
2640
RUN 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
3450
RUN useradd --shell /bin/bash libgit2 --create-home
3551

3652
FROM adduser AS configure

ci/docker/centos8

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff 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
2841
RUN useradd --shell /bin/bash libgit2 --create-home
2942

3043
FROM adduser AS configure

0 commit comments

Comments
 (0)