Skip to content

Commit

Permalink
Merge pull request #803 from suketa/valgrind_into_docker
Browse files Browse the repository at this point in the history
install valgrind into docker environment.
  • Loading branch information
suketa authored Nov 14, 2024
2 parents 22b00e8 + 89a0b6b commit 405cd5e
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,31 @@ ARG RUBY_VERSION=3.3.6
FROM ruby:${RUBY_VERSION}

ARG DUCKDB_VERSION=1.1.3
ARG VALGRIND_VERSION=3.21.0

RUN apt update -qq && \
apt install -y build-essential curl git wget
apt install -y build-essential curl git wget libc6-dbg

COPY getduckdb.sh .
RUN ./getduckdb.sh

RUN unzip duckdb.zip -d libduckdb
RUN mv libduckdb/duckdb.* /usr/local/include
RUN mv libduckdb/libduckdb.so /usr/local/lib
RUN ldconfig /usr/local/lib
RUN unzip duckdb.zip -d libduckdb && \
mv libduckdb/duckdb.* /usr/local/include && \
mv libduckdb/libduckdb.so /usr/local/lib && \
ldconfig /usr/local/lib

RUN mkdir valgrind-tmp && \
cd valgrind-tmp && \
wget https://sourceware.org/pub/valgrind/valgrind-${VALGRIND_VERSION}.tar.bz2 && \
tar xf valgrind-${VALGRIND_VERSION}.tar.bz2 && \
cd valgrind-${VALGRIND_VERSION} && \
./configure && \
make -s && \
make -s install && \
cd .. && \
rm -rf /valgrind-tmp

COPY . /root/ruby-duckdb
WORKDIR /root/ruby-duckdb
RUN git config --global --add safe.directory /root/ruby-duckdb
RUN bundle install
RUN rake build
RUN bundle install && rake build

0 comments on commit 405cd5e

Please sign in to comment.