Commit d4416624 by Edward Thomson

ci: update centos builds

parent 5ad53ec7
...@@ -2,6 +2,7 @@ ARG BASE=centos:7 ...@@ -2,6 +2,7 @@ ARG BASE=centos:7
FROM ${BASE} AS yum FROM ${BASE} AS yum
RUN yum install -y \ RUN yum install -y \
which \ which \
bzip2 \
git \ git \
libarchive \ libarchive \
gcc \ gcc \
...@@ -20,17 +21,32 @@ RUN cd /tmp && \ ...@@ -20,17 +21,32 @@ RUN cd /tmp && \
cd libssh2-1.8.0 && \ cd libssh2-1.8.0 && \
./configure && \ ./configure && \
make && \ make && \
make install make install && \
cd .. && \
rm -rf libssh-1.8.0
FROM libssh2 AS cmake FROM libssh2 AS valgrind
RUN cd /tmp && \
curl --insecure --location --silent --show-error https://sourceware.org/pub/valgrind/valgrind-3.15.0.tar.bz2 | \
tar -xj && \
cd valgrind-3.15.0 && \
./configure && \
make MAKEFLAGS="-j -l$(grep -c ^processor /proc/cpuinfo)" && \
make install && \
cd .. && \
rm -rf valgrind-3.15.0
FROM valgrind AS cmake
RUN cd /tmp && \ RUN cd /tmp && \
curl -L https://github.com/Kitware/CMake/releases/download/v3.21.1/cmake-3.21.1.tar.gz | tar -xz && \ curl -L https://github.com/Kitware/CMake/releases/download/v3.21.1/cmake-3.21.1.tar.gz | tar -xz && \
cd cmake-3.21.1 && \ cd cmake-3.21.1 && \
./configure && \ ./configure && \
make && \ make && \
make install make install && \
cd .. && \
rm -rf cmake-3.21.1
FROM libssh2 AS adduser FROM cmake AS adduser
RUN useradd --shell /bin/bash libgit2 --create-home RUN useradd --shell /bin/bash libgit2 --create-home
FROM adduser AS configure FROM adduser AS configure
......
...@@ -22,9 +22,22 @@ RUN cd /tmp && \ ...@@ -22,9 +22,22 @@ RUN cd /tmp && \
cd libssh2-1.8.0 && \ cd libssh2-1.8.0 && \
./configure && \ ./configure && \
make && \ make && \
make install make install && \
cd .. && \
rm -rf libssh2-1.8.0
FROM libssh2 AS adduser FROM libssh2 AS valgrind
RUN cd /tmp && \
curl --insecure --location --silent --show-error https://sourceware.org/pub/valgrind/valgrind-3.15.0.tar.bz2 | \
tar -xj && \
cd valgrind-3.15.0 && \
CC=clang-10 ./configure && \
make MAKEFLAGS="-j -l$(grep -c ^processor /proc/cpuinfo)" && \
make install && \
cd .. && \
rm -rf valgrind-3.15.0
FROM valgrind AS adduser
RUN useradd --shell /bin/bash libgit2 --create-home RUN useradd --shell /bin/bash libgit2 --create-home
FROM adduser AS configure FROM adduser AS configure
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment