about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-11-05 09:01:37 +0100
committerGitHub <noreply@github.com>2019-11-05 09:01:37 +0100
commitc9c7e4777e089053ba4cfb847fc0900c6454ac53 (patch)
tree1dd6fd94553ea641bd0663161a6a9ade649f8a30
parentc11b8883e042fc5c8f42ad64e0fb34888f8bc2ea (diff)
parent67ae54c957926bd382433c2a08ebba9f1dd711da (diff)
downloadafl++-c9c7e4777e089053ba4cfb847fc0900c6454ac53.tar.gz
Merge pull request #100 from devnexen/docker
Basic docker build proposal.
-rw-r--r--Dockerfile25
-rw-r--r--docs/QuickStartGuide.txt2
2 files changed, 27 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000..7defa8e9
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,25 @@
+FROM ubuntu:eoan
+RUN apt-get update && apt-get install -y --no-install-recommends \
+    automake \
+    bison \
+    build-essential \
+    clang \
+    clang-9 \
+    flex \
+    gcc-9 \
+    gcc-9-plugin-dev \
+    libc++-9-dev \
+    libtool \
+    libtool-bin \
+    libglib2.0-dev \
+    llvm-9-tools \
+    python-setuptools \
+    wget \
+    && rm -fr /var/lib/apt/lists/*
+RUN mkdir /app
+WORKDIR ["/app"]
+COPY . .
+ENV CC=gcc-9
+ENV CXX=g++-9
+ENV LLVM_CONFIG=llvm-config-9
+RUN make clean && make distrib && make tests
diff --git a/docs/QuickStartGuide.txt b/docs/QuickStartGuide.txt
index 9190dc98..723611e3 100644
--- a/docs/QuickStartGuide.txt
+++ b/docs/QuickStartGuide.txt
@@ -45,6 +45,8 @@ how to hit the ground running:
 7) compile and use llvm_mode (afl-clang-fast/afl-clang-fast++) as it is way
    faster and has a few cool features
 
+8) There is a basic docker build with 'docker build -t aflplusplus .'
+
 That's it. Sit back, relax, and - time permitting - try to skim through the
 following files: