-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (24 loc) · 933 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (24 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ubuntu:24.04
RUN apt update
RUN apt install -y git wget gcc build-essential automake python gcc-multilib
RUN mkdir /code
# build, install valgrind
RUN wget -O /code/valgrind.tar.bz2 https://sourceware.org/pub/valgrind/valgrind-3.27.1.tar.bz2
RUN cd /code && \
tar jxf /code/valgrind.tar.bz2 && \
mv valgrind-3.27.1 valgrind
# clone taintgrind
RUN cd /code/valgrind && \
wget -O /code/valgrind.tar.gz https://github.com/wmkhoo/taintgrind/archive/refs/tags/v3.27.1.tar.gz && \
tar zxf /code/valgrind.tar.bz2
# build capstone
RUN cd /code/valgrind/taintgrind && \
./build_taintgrind.sh
# dispatch via entrypoint script
# recommend mapping the /pwd volume, probably like (for ELF file):
#
# docker run -it --rm -v $(pwd):/pwd taintgrind /pwd/someexe
VOLUME /pwd
WORKDIR /code/valgrind/taintgrind
RUN chmod +x /code/valgrind/taintgrind/entrypoint.sh
ENTRYPOINT ["/code/valgrind/taintgrind/entrypoint.sh"]