From cf248c4759bdae48d722f8c2e019d20f4e898fd9 Mon Sep 17 00:00:00 2001 From: Mike Aizatsky Date: Tue, 29 Nov 2016 12:55:35 -0800 Subject: [infra] making shallow git clones. fixes #42 --- infra/templates.py | 2 +- projects/boringssl/Dockerfile | 2 +- projects/c-ares/Dockerfile | 2 +- projects/curl/Dockerfile | 2 +- projects/expat/Dockerfile | 2 +- projects/ffmpeg/Dockerfile | 24 ++++++++++++------------ projects/file/Dockerfile | 4 ++-- projects/freetype2/Dockerfile | 2 +- projects/harfbuzz/Dockerfile | 2 +- projects/json/Dockerfile | 2 +- projects/lcms/Dockerfile | 2 +- projects/libarchive/Dockerfile | 2 +- projects/libass/Dockerfile | 4 ++-- projects/libchewing/Dockerfile | 2 +- projects/libjpeg-turbo/Dockerfile | 2 +- projects/libpng/Dockerfile | 2 +- projects/libtsm/Dockerfile | 2 +- projects/libxml2/Dockerfile | 2 +- projects/nss/Dockerfile | 2 +- projects/openssl/Dockerfile | 2 +- projects/ots/Dockerfile | 2 +- projects/re2/Dockerfile | 2 +- projects/woff2/Dockerfile | 2 +- projects/zlib/Dockerfile | 2 +- 24 files changed, 37 insertions(+), 37 deletions(-) diff --git a/infra/templates.py b/infra/templates.py index 28f62d04..be6cdb4c 100755 --- a/infra/templates.py +++ b/infra/templates.py @@ -39,7 +39,7 @@ DOCKER_TEMPLATE = """\ FROM ossfuzz/base-libfuzzer MAINTAINER your@email.com RUN apt-get install -y make autoconf automake libtool -RUN git clone %(project_name)s # or use other version control +RUN git clone --depth 1 %(project_name)s # or use other version control WORKDIR %(project_name)s COPY build.sh $src/ """ diff --git a/projects/boringssl/Dockerfile b/projects/boringssl/Dockerfile index 0368f816..6bf3457f 100644 --- a/projects/boringssl/Dockerfile +++ b/projects/boringssl/Dockerfile @@ -18,5 +18,5 @@ FROM ossfuzz/base-libfuzzer MAINTAINER mike.aizatsky@gmail.com RUN apt-get install -y cmake ninja-build golang -RUN git clone https://boringssl.googlesource.com/boringssl +RUN git clone --depth 1 https://boringssl.googlesource.com/boringssl COPY build.sh $SRC/ diff --git a/projects/c-ares/Dockerfile b/projects/c-ares/Dockerfile index 56e50dcf..9f22cb88 100644 --- a/projects/c-ares/Dockerfile +++ b/projects/c-ares/Dockerfile @@ -17,6 +17,6 @@ FROM ossfuzz/base-libfuzzer MAINTAINER mmoroz@chromium.org RUN apt-get install -y make autoconf automake libtool -RUN git clone https://github.com/c-ares/c-ares.git +RUN git clone --depth 1 https://github.com/c-ares/c-ares.git WORKDIR c-ares COPY build.sh *_fuzzer.cc $SRC/ diff --git a/projects/curl/Dockerfile b/projects/curl/Dockerfile index d8df622d..a71e6de2 100644 --- a/projects/curl/Dockerfile +++ b/projects/curl/Dockerfile @@ -18,7 +18,7 @@ FROM ossfuzz/base-libfuzzer MAINTAINER dvyukov@google.com RUN apt-get install -y make autoconf automake libtool libssl-dev zlib1g-dev -RUN git clone https://github.com/curl/curl.git +RUN git clone --depth 1 https://github.com/curl/curl.git WORKDIR curl COPY build.sh curl_fuzzer.cc *.options *.dict $SRC/ diff --git a/projects/expat/Dockerfile b/projects/expat/Dockerfile index 83302cd7..14738150 100644 --- a/projects/expat/Dockerfile +++ b/projects/expat/Dockerfile @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer MAINTAINER mike.aizatsky@gmail.com RUN apt-get install -y make autoconf automake libtool docbook2x -RUN git clone git://git.code.sf.net/p/expat/code_git expat +RUN git clone --depth 1 git://git.code.sf.net/p/expat/code_git expat WORKDIR expat/expat COPY build.sh parse_fuzzer.* xml.dict $SRC/ diff --git a/projects/ffmpeg/Dockerfile b/projects/ffmpeg/Dockerfile index 6543bc8e..a5d9c10e 100644 --- a/projects/ffmpeg/Dockerfile +++ b/projects/ffmpeg/Dockerfile @@ -22,22 +22,22 @@ RUN apt-get install -y make autoconf automake libtool build-essential \ pkg-config texinfo libbz2-dev zlib1g-dev nasm yasm cmake mercurial wget \ xutils-dev libpciaccess-dev -RUN git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg +RUN git clone --depth 1 https://git.ffmpeg.org/ffmpeg.git ffmpeg RUN wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.0.tar.bz2 -RUN git clone git://anongit.freedesktop.org/mesa/drm -RUN git clone https://github.com/mstorsjo/fdk-aac.git +RUN git clone --depth 1 git://anongit.freedesktop.org/mesa/drm +RUN git clone --depth 1 https://github.com/mstorsjo/fdk-aac.git RUN wget https://sourceforge.net/projects/lame/files/latest/download -O lame.tar.gz -RUN git clone git://anongit.freedesktop.org/xorg/lib/libXext -RUN git clone git://anongit.freedesktop.org/git/xorg/lib/libXfixes -RUN git clone git://anongit.freedesktop.org/git/libva -RUN git clone git://people.freedesktop.org/~aplattner/libvdpau -RUN git clone https://chromium.googlesource.com/webm/libvpx +RUN git clone --depth 1 git://anongit.freedesktop.org/xorg/lib/libXext +RUN git clone --depth 1 git://anongit.freedesktop.org/git/xorg/lib/libXfixes +RUN git clone --depth 1 git://anongit.freedesktop.org/git/libva +RUN git clone --depth 1 git://people.freedesktop.org/~aplattner/libvdpau +RUN git clone --depth 1 https://chromium.googlesource.com/webm/libvpx RUN svn co http://svn.xiph.org/trunk/ogg -RUN git clone git://git.xiph.org/opus.git -RUN git clone git://git.xiph.org/theora.git -RUN git clone git://git.xiph.org/vorbis.git -RUN git clone git://git.videolan.org/git/x264.git +RUN git clone --depth 1 git://git.xiph.org/opus.git +RUN git clone --depth 1 git://git.xiph.org/theora.git +RUN git clone --depth 1 git://git.xiph.org/vorbis.git +RUN git clone --depth 1 git://git.videolan.org/git/x264.git RUN hg clone https://bitbucket.org/multicoreware/x265 COPY build.sh group_seed_corpus.py $SRC/ diff --git a/projects/file/Dockerfile b/projects/file/Dockerfile index 663f9874..4587c491 100644 --- a/projects/file/Dockerfile +++ b/projects/file/Dockerfile @@ -16,7 +16,7 @@ FROM ossfuzz/base-libfuzzer MAINTAINER mike.aizatsky@gmail.com -RUN apt-get install -y make autoconf automake libtool shtool -RUN git clone https://github.com/file/file.git +RUN apt-get install -y make autoconf automake libtool shtool +RUN git clone --depth 1 https://github.com/file/file.git WORKDIR file COPY build.sh magic_fuzzer.cc $SRC/ diff --git a/projects/freetype2/Dockerfile b/projects/freetype2/Dockerfile index d324066d..d264e314 100644 --- a/projects/freetype2/Dockerfile +++ b/projects/freetype2/Dockerfile @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer MAINTAINER mike.aizatsky@gmail.com RUN apt-get install -y make autoconf libtool libarchive-dev -RUN git clone git://git.sv.nongnu.org/freetype/freetype2.git +RUN git clone --depth 1 git://git.sv.nongnu.org/freetype/freetype2.git WORKDIR freetype2 COPY build.sh $SRC/ diff --git a/projects/harfbuzz/Dockerfile b/projects/harfbuzz/Dockerfile index 19bbb9d9..6065f2c1 100644 --- a/projects/harfbuzz/Dockerfile +++ b/projects/harfbuzz/Dockerfile @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer MAINTAINER mmoroz@chromium.org RUN apt-get install -y make autoconf automake libtool ragel pkg-config -RUN git clone https://anongit.freedesktop.org/git/harfbuzz.git +RUN git clone --depth 1 https://anongit.freedesktop.org/git/harfbuzz.git WORKDIR harfbuzz COPY build.sh harfbuzz_fuzzer.cc $SRC/ diff --git a/projects/json/Dockerfile b/projects/json/Dockerfile index 3d5c6c1a..3514bfff 100644 --- a/projects/json/Dockerfile +++ b/projects/json/Dockerfile @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer MAINTAINER vitalybuka@gmail.com RUN apt-get install -y binutils gcc -RUN git clone https://github.com/nlohmann/json.git +RUN git clone --depth 1 https://github.com/nlohmann/json.git WORKDIR json/ COPY build.sh parse_fuzzer.* $SRC/ diff --git a/projects/lcms/Dockerfile b/projects/lcms/Dockerfile index 85d94ee5..f8b52359 100644 --- a/projects/lcms/Dockerfile +++ b/projects/lcms/Dockerfile @@ -17,6 +17,6 @@ FROM ossfuzz/base-libfuzzer MAINTAINER kcwu@google.com RUN apt-get install -y make autoconf automake libtool -RUN git clone https://github.com/mm2/Little-CMS.git lcms +RUN git clone --depth 1 https://github.com/mm2/Little-CMS.git lcms WORKDIR lcms COPY build.sh cmsIT8_load_fuzzer.* cms_transform_fuzzer.* icc.dict $SRC/ diff --git a/projects/libarchive/Dockerfile b/projects/libarchive/Dockerfile index d10fa0fd..3d3aa8f9 100644 --- a/projects/libarchive/Dockerfile +++ b/projects/libarchive/Dockerfile @@ -22,6 +22,6 @@ MAINTAINER kcwu@google.com RUN apt-get install -y make autoconf automake libtool pkg-config \ libbz2-dev liblzo2-dev liblzma-dev liblz4-dev libz-dev \ libxml2-dev libssl-dev -RUN git clone https://github.com/libarchive/libarchive.git +RUN git clone --depth 1 https://github.com/libarchive/libarchive.git WORKDIR libarchive COPY build.sh libarchive_fuzzer.cc $SRC/ diff --git a/projects/libass/Dockerfile b/projects/libass/Dockerfile index 1fd7c92e..39000e49 100644 --- a/projects/libass/Dockerfile +++ b/projects/libass/Dockerfile @@ -18,7 +18,7 @@ FROM ossfuzz/base-libfuzzer MAINTAINER eugeni.stepanov@gmail.com RUN apt-get install -y make autoconf automake libtool pkg-config libfreetype6-dev libfontconfig1-dev -RUN git clone https://github.com/libass/libass.git -RUN git clone https://github.com/behdad/fribidi.git +RUN git clone --depth 1 https://github.com/libass/libass.git +RUN git clone --depth 1 https://github.com/behdad/fribidi.git COPY build.sh libass_fuzzer.cc *.dict *.options $SRC/ diff --git a/projects/libchewing/Dockerfile b/projects/libchewing/Dockerfile index 50fb6939..93acbf01 100644 --- a/projects/libchewing/Dockerfile +++ b/projects/libchewing/Dockerfile @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer MAINTAINER kcwu@csie.org RUN apt-get install -y make autoconf automake libtool texinfo -RUN git clone https://github.com/chewing/libchewing.git +RUN git clone --depth 1 https://github.com/chewing/libchewing.git WORKDIR libchewing COPY build.sh chewing_fuzzer_common.[ch] chewing_*_fuzzer.c $SRC/ diff --git a/projects/libjpeg-turbo/Dockerfile b/projects/libjpeg-turbo/Dockerfile index 94a4c349..2ecf9751 100644 --- a/projects/libjpeg-turbo/Dockerfile +++ b/projects/libjpeg-turbo/Dockerfile @@ -17,7 +17,7 @@ FROM ossfuzz/base-libfuzzer MAINTAINER alex.gaynor@gmail.com RUN apt-get install -y make autoconf automake libtool nasm curl -RUN git clone https://github.com/libjpeg-turbo/libjpeg-turbo +RUN git clone --depth 1 https://github.com/libjpeg-turbo/libjpeg-turbo RUN mkdir afl-testcases RUN curl -o afl-testcases/afl_testcases.tgz http://lcamtuf.coredump.cx/afl/demo/afl_testcases.tgz diff --git a/projects/libpng/Dockerfile b/projects/libpng/Dockerfile index 04a73b8a..44411e6e 100644 --- a/projects/libpng/Dockerfile +++ b/projects/libpng/Dockerfile @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer MAINTAINER mmoroz@chromium.org RUN apt-get install -y make autoconf automake libtool zlib1g-dev -RUN git clone git://git.code.sf.net/p/libpng/code libpng +RUN git clone --depth 1 git://git.code.sf.net/p/libpng/code libpng WORKDIR libpng COPY build.sh libpng_read_fuzzer.* png.dict $SRC/ diff --git a/projects/libtsm/Dockerfile b/projects/libtsm/Dockerfile index c69cb1a8..2c7448cb 100644 --- a/projects/libtsm/Dockerfile +++ b/projects/libtsm/Dockerfile @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer MAINTAINER kcwu@csie.org RUN apt-get install -y make autoconf automake libtool pkg-config -RUN git clone git://people.freedesktop.org/~dvdhrm/libtsm +RUN git clone --depth 1 git://people.freedesktop.org/~dvdhrm/libtsm WORKDIR libtsm COPY build.sh libtsm_fuzzer.c $SRC/ diff --git a/projects/libxml2/Dockerfile b/projects/libxml2/Dockerfile index 078379b4..e71557ac 100644 --- a/projects/libxml2/Dockerfile +++ b/projects/libxml2/Dockerfile @@ -18,7 +18,7 @@ FROM ossfuzz/base-libfuzzer MAINTAINER ochang@chromium.org RUN apt-get install -y make autoconf automake libtool pkg-config -RUN git clone git://git.gnome.org/libxml2 +RUN git clone --depth 1 git://git.gnome.org/libxml2 WORKDIR libxml2 COPY build.sh $SRC/ diff --git a/projects/nss/Dockerfile b/projects/nss/Dockerfile index e3a621ec..677cd785 100644 --- a/projects/nss/Dockerfile +++ b/projects/nss/Dockerfile @@ -20,7 +20,7 @@ RUN apt-get install -y make autoconf automake libtool mercurial zlib1g-dev RUN hg clone https://hg.mozilla.org/projects/nspr nspr RUN hg clone https://hg.mozilla.org/projects/nss nss -RUN git clone https://github.com/mozilla/nss-fuzzing-corpus.git nss-corpus +RUN git clone --depth 1 https://github.com/mozilla/nss-fuzzing-corpus.git nss-corpus WORKDIR nss COPY build.sh fuzzers/* $SRC/ diff --git a/projects/openssl/Dockerfile b/projects/openssl/Dockerfile index 0487f13c..5ff3eda5 100644 --- a/projects/openssl/Dockerfile +++ b/projects/openssl/Dockerfile @@ -17,6 +17,6 @@ FROM ossfuzz/base-libfuzzer MAINTAINER kurt@roeckx.be RUN apt-get install -y make -RUN git clone https://github.com/openssl/openssl.git +RUN git clone --depth 1 https://github.com/openssl/openssl.git WORKDIR openssl COPY build.sh $SRC/ diff --git a/projects/ots/Dockerfile b/projects/ots/Dockerfile index 8d33b582..81ceffb9 100644 --- a/projects/ots/Dockerfile +++ b/projects/ots/Dockerfile @@ -17,7 +17,7 @@ FROM ossfuzz/base-libfuzzer MAINTAINER mmoroz@chromium.org RUN apt-get install -y make autoconf automake libtool pkg-config zlib1g-dev -RUN git clone https://github.com/khaledhosny/ots.git +RUN git clone --depth 1 https://github.com/khaledhosny/ots.git WORKDIR ots COPY build.sh ots_fuzzer.* $SRC/ COPY seed_corpus $SRC/seed_corpus diff --git a/projects/re2/Dockerfile b/projects/re2/Dockerfile index 13893cb3..f5eb5bb6 100644 --- a/projects/re2/Dockerfile +++ b/projects/re2/Dockerfile @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer MAINTAINER wrengr@chromium.org RUN apt-get install -y make autoconf automake libtool -RUN git clone https://code.googlesource.com/re2 +RUN git clone --depth 1 https://code.googlesource.com/re2 WORKDIR re2 COPY build.sh re2_fuzzer.* $SRC/ diff --git a/projects/woff2/Dockerfile b/projects/woff2/Dockerfile index cf7066fd..4d6eef34 100644 --- a/projects/woff2/Dockerfile +++ b/projects/woff2/Dockerfile @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer MAINTAINER mmoroz@chromium.org RUN apt-get install -y make autoconf automake libtool -RUN git clone --recursive https://github.com/google/woff2 +RUN git clone --depth 1 --recursive --shallow-submodules https://github.com/google/woff2 WORKDIR woff2 COPY build.sh convert_woff2ttf_fuzzer.* $SRC/ diff --git a/projects/zlib/Dockerfile b/projects/zlib/Dockerfile index ee844922..f3e69909 100644 --- a/projects/zlib/Dockerfile +++ b/projects/zlib/Dockerfile @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer MAINTAINER inferno@chromium.org RUN apt-get install -y make autoconf automake libtool -RUN git clone https://github.com/madler/zlib.git +RUN git clone --depth 1 https://github.com/madler/zlib.git WORKDIR zlib COPY build.sh zlib_uncompress_fuzzer.cc $SRC/ -- cgit v1.2.3