Skip to content

Instantly share code, notes, and snippets.

@allanlw
Created November 21, 2014 21:04
Show Gist options
  • Save allanlw/27dd56d78a1a88166b4c to your computer and use it in GitHub Desktop.
Save allanlw/27dd56d78a1a88166b4c to your computer and use it in GitHub Desktop.
BAP 0.8 Dockerfile for ubuntu 12.04
FROM ubuntu:12.04
RUN apt-get update && apt-get -y --no-install-recommends install \
automake \
binutils-dev \
bison \
build-essential \
ca-certificates \
camlidl \
camlp4-extra \
cvc3 \
flex \
g++ \
g++-multilib \
gcc-multilib \
lib32z1-dev \
libcamomile-ocaml-dev \
libgmp3-dev \
libllvm-3.1-ocaml-dev \
libpcre3-dev \
libtool \
make \
ocaml-findlib \
ocaml-nox \
ocaml-native-compilers \
otags \
wget \
zlib1g-dev
WORKDIR /opt/
RUN wget http://bap.ece.cmu.edu/download/bap-0.8.tar.gz && tar xvzf bap-0.8.tar.gz && rm bap-0.8.tar.gz
WORKDIR ./bap-0.8
# Install PIN crap
WORKDIR ./pintraces
RUN ./getpin.sh
WORKDIR ../
RUN ./autogen.sh && ./configure --with-llvm && make -j $(nproc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment