Commit c64b7aaa by Edward Thomson

ci: build our own valgrind

The valgrind in the PPA is broken and ignores `--exit-errorcode`.
Build and install our own.
parent 7adc32d5
ARG BASE ARG BASE
FROM $BASE AS apt FROM $BASE AS apt
RUN echo 'deb http://ppa.launchpad.net/hola-launchpad/valgrind/ubuntu xenial main' >/etc/apt/sources.list.d/valgrind.list && \ RUN apt-get update && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8A0303A7544D59A08EBD1D621BCFD9273D292CF6 && \
apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
bzip2 \
clang \ clang \
cmake \ cmake \
curl \ curl \
...@@ -15,6 +14,7 @@ RUN echo 'deb http://ppa.launchpad.net/hola-launchpad/valgrind/ubuntu xenial mai ...@@ -15,6 +14,7 @@ RUN echo 'deb http://ppa.launchpad.net/hola-launchpad/valgrind/ubuntu xenial mai
libpcre3-dev \ libpcre3-dev \
libssl-dev \ libssl-dev \
libz-dev \ libz-dev \
make \
ninja-build \ ninja-build \
openjdk-8-jre-headless \ openjdk-8-jre-headless \
openssh-server \ openssh-server \
...@@ -46,7 +46,19 @@ RUN cd /tmp && \ ...@@ -46,7 +46,19 @@ RUN cd /tmp && \
cd .. && \ cd .. && \
rm -rf libssh2-1.8.2 rm -rf libssh2-1.8.2
FROM libssh2 AS configure FROM libssh2 AS valgrind
RUN cd /tmp && \
curl -LO https://sourceware.org/pub/valgrind/valgrind-3.15.0.tar.bz2 && \
tar -xf valgrind-3.15.0.tar.bz2 && \
rm -f valgrind-3.15.0.tar.bz2 && \
cd valgrind-3.15.0 && \
./configure && \
make && \
make install && \
cd .. && \
rm -rf valgrind-3.15.0
FROM valgrind AS configure
COPY entrypoint.sh /usr/local/bin/entrypoint.sh COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod a+x /usr/local/bin/entrypoint.sh RUN chmod a+x /usr/local/bin/entrypoint.sh
RUN mkdir /var/run/sshd RUN mkdir /var/run/sshd
......
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