aboutsummaryrefslogtreecommitdiff
path: root/projects/curl
diff options
context:
space:
mode:
authorMax Dymond <cmeister2@gmail.com>2018-04-15 23:58:27 +0100
committerAbhishek Arya <inferno@chromium.org>2018-04-15 15:58:27 -0700
commitf74e026685fab6c1fe04a31b83efa8e13d19d6fb (patch)
tree1ebdffbceb39804b7b1bda7397e0275281fd8a02 /projects/curl
parentaeee0fdc623995e5e47e08ce10f116c77f8b3e56 (diff)
downloadoss-fuzz-f74e026685fab6c1fe04a31b83efa8e13d19d6fb.tar.gz
curl: Download dependencies in Docker using the curl-fuzzer scripts (#1316)
curl-fuzzer would like to use a script to define the dependencies downloaded as part of oss-fuzz image generation, so that only one repository needs updating in order to get future fuzzing builds running.
Diffstat (limited to 'projects/curl')
-rw-r--r--projects/curl/Dockerfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/projects/curl/Dockerfile b/projects/curl/Dockerfile
index 5969a9f16..e316e3c76 100644
--- a/projects/curl/Dockerfile
+++ b/projects/curl/Dockerfile
@@ -16,9 +16,12 @@
FROM gcr.io/oss-fuzz-base/base-builder
MAINTAINER dvyukov@google.com
-RUN apt-get update && apt-get install -y make autoconf automake libtool libssl-dev zlib1g-dev
RUN git clone --depth 1 https://github.com/curl/curl.git /src/curl
RUN git clone --depth 1 https://github.com/curl/curl-fuzzer.git /src/curl_fuzzer
+
+# Use curl-fuzzer's scripts to get latest dependencies.
+RUN /src/curl_fuzzer/scripts/ossfuzzdeps.sh
+
WORKDIR /src/curl_fuzzer
COPY build.sh $SRC/