[infra] making shallow git clones. fixes #42

This commit is contained in:
Mike Aizatsky 2016-11-29 12:55:35 -08:00
parent 6a493eb945
commit cf248c4759
24 changed files with 37 additions and 37 deletions

View File

@ -39,7 +39,7 @@ DOCKER_TEMPLATE = """\
FROM ossfuzz/base-libfuzzer FROM ossfuzz/base-libfuzzer
MAINTAINER your@email.com MAINTAINER your@email.com
RUN apt-get install -y make autoconf automake libtool RUN apt-get install -y make autoconf automake libtool
RUN git clone <git_url> %(project_name)s # or use other version control RUN git clone --depth 1 <git_url> %(project_name)s # or use other version control
WORKDIR %(project_name)s WORKDIR %(project_name)s
COPY build.sh $src/ COPY build.sh $src/
""" """

View File

@ -18,5 +18,5 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER mike.aizatsky@gmail.com MAINTAINER mike.aizatsky@gmail.com
RUN apt-get install -y cmake ninja-build golang 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/ COPY build.sh $SRC/

View File

@ -17,6 +17,6 @@
FROM ossfuzz/base-libfuzzer FROM ossfuzz/base-libfuzzer
MAINTAINER mmoroz@chromium.org MAINTAINER mmoroz@chromium.org
RUN apt-get install -y make autoconf automake libtool 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 WORKDIR c-ares
COPY build.sh *_fuzzer.cc $SRC/ COPY build.sh *_fuzzer.cc $SRC/

View File

@ -18,7 +18,7 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER dvyukov@google.com MAINTAINER dvyukov@google.com
RUN apt-get install -y make autoconf automake libtool libssl-dev zlib1g-dev 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 WORKDIR curl
COPY build.sh curl_fuzzer.cc *.options *.dict $SRC/ COPY build.sh curl_fuzzer.cc *.options *.dict $SRC/

View File

@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER mike.aizatsky@gmail.com MAINTAINER mike.aizatsky@gmail.com
RUN apt-get install -y make autoconf automake libtool docbook2x 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 WORKDIR expat/expat
COPY build.sh parse_fuzzer.* xml.dict $SRC/ COPY build.sh parse_fuzzer.* xml.dict $SRC/

View File

@ -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 \ pkg-config texinfo libbz2-dev zlib1g-dev nasm yasm cmake mercurial wget \
xutils-dev libpciaccess-dev 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 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 --depth 1 git://anongit.freedesktop.org/mesa/drm
RUN git clone https://github.com/mstorsjo/fdk-aac.git 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 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 --depth 1 git://anongit.freedesktop.org/xorg/lib/libXext
RUN git clone git://anongit.freedesktop.org/git/xorg/lib/libXfixes RUN git clone --depth 1 git://anongit.freedesktop.org/git/xorg/lib/libXfixes
RUN git clone git://anongit.freedesktop.org/git/libva RUN git clone --depth 1 git://anongit.freedesktop.org/git/libva
RUN git clone git://people.freedesktop.org/~aplattner/libvdpau RUN git clone --depth 1 git://people.freedesktop.org/~aplattner/libvdpau
RUN git clone https://chromium.googlesource.com/webm/libvpx RUN git clone --depth 1 https://chromium.googlesource.com/webm/libvpx
RUN svn co http://svn.xiph.org/trunk/ogg RUN svn co http://svn.xiph.org/trunk/ogg
RUN git clone git://git.xiph.org/opus.git RUN git clone --depth 1 git://git.xiph.org/opus.git
RUN git clone git://git.xiph.org/theora.git RUN git clone --depth 1 git://git.xiph.org/theora.git
RUN git clone git://git.xiph.org/vorbis.git RUN git clone --depth 1 git://git.xiph.org/vorbis.git
RUN git clone git://git.videolan.org/git/x264.git RUN git clone --depth 1 git://git.videolan.org/git/x264.git
RUN hg clone https://bitbucket.org/multicoreware/x265 RUN hg clone https://bitbucket.org/multicoreware/x265
COPY build.sh group_seed_corpus.py $SRC/ COPY build.sh group_seed_corpus.py $SRC/

View File

@ -16,7 +16,7 @@
FROM ossfuzz/base-libfuzzer FROM ossfuzz/base-libfuzzer
MAINTAINER mike.aizatsky@gmail.com MAINTAINER mike.aizatsky@gmail.com
RUN apt-get install -y make autoconf automake libtool shtool RUN apt-get install -y make autoconf automake libtool shtool
RUN git clone https://github.com/file/file.git RUN git clone --depth 1 https://github.com/file/file.git
WORKDIR file WORKDIR file
COPY build.sh magic_fuzzer.cc $SRC/ COPY build.sh magic_fuzzer.cc $SRC/

View File

@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER mike.aizatsky@gmail.com MAINTAINER mike.aizatsky@gmail.com
RUN apt-get install -y make autoconf libtool libarchive-dev 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 WORKDIR freetype2
COPY build.sh $SRC/ COPY build.sh $SRC/

View File

@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER mmoroz@chromium.org MAINTAINER mmoroz@chromium.org
RUN apt-get install -y make autoconf automake libtool ragel pkg-config 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 WORKDIR harfbuzz
COPY build.sh harfbuzz_fuzzer.cc $SRC/ COPY build.sh harfbuzz_fuzzer.cc $SRC/

View File

@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER vitalybuka@gmail.com MAINTAINER vitalybuka@gmail.com
RUN apt-get install -y binutils gcc 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/ WORKDIR json/
COPY build.sh parse_fuzzer.* $SRC/ COPY build.sh parse_fuzzer.* $SRC/

View File

@ -17,6 +17,6 @@
FROM ossfuzz/base-libfuzzer FROM ossfuzz/base-libfuzzer
MAINTAINER kcwu@google.com MAINTAINER kcwu@google.com
RUN apt-get install -y make autoconf automake libtool 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 WORKDIR lcms
COPY build.sh cmsIT8_load_fuzzer.* cms_transform_fuzzer.* icc.dict $SRC/ COPY build.sh cmsIT8_load_fuzzer.* cms_transform_fuzzer.* icc.dict $SRC/

View File

@ -22,6 +22,6 @@ MAINTAINER kcwu@google.com
RUN apt-get install -y make autoconf automake libtool pkg-config \ RUN apt-get install -y make autoconf automake libtool pkg-config \
libbz2-dev liblzo2-dev liblzma-dev liblz4-dev libz-dev \ libbz2-dev liblzo2-dev liblzma-dev liblz4-dev libz-dev \
libxml2-dev libssl-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 WORKDIR libarchive
COPY build.sh libarchive_fuzzer.cc $SRC/ COPY build.sh libarchive_fuzzer.cc $SRC/

View File

@ -18,7 +18,7 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER eugeni.stepanov@gmail.com MAINTAINER eugeni.stepanov@gmail.com
RUN apt-get install -y make autoconf automake libtool pkg-config libfreetype6-dev libfontconfig1-dev 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 --depth 1 https://github.com/libass/libass.git
RUN git clone https://github.com/behdad/fribidi.git RUN git clone --depth 1 https://github.com/behdad/fribidi.git
COPY build.sh libass_fuzzer.cc *.dict *.options $SRC/ COPY build.sh libass_fuzzer.cc *.dict *.options $SRC/

View File

@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER kcwu@csie.org MAINTAINER kcwu@csie.org
RUN apt-get install -y make autoconf automake libtool texinfo 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 WORKDIR libchewing
COPY build.sh chewing_fuzzer_common.[ch] chewing_*_fuzzer.c $SRC/ COPY build.sh chewing_fuzzer_common.[ch] chewing_*_fuzzer.c $SRC/

View File

@ -17,7 +17,7 @@
FROM ossfuzz/base-libfuzzer FROM ossfuzz/base-libfuzzer
MAINTAINER alex.gaynor@gmail.com MAINTAINER alex.gaynor@gmail.com
RUN apt-get install -y make autoconf automake libtool nasm curl 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 mkdir afl-testcases
RUN curl -o afl-testcases/afl_testcases.tgz http://lcamtuf.coredump.cx/afl/demo/afl_testcases.tgz RUN curl -o afl-testcases/afl_testcases.tgz http://lcamtuf.coredump.cx/afl/demo/afl_testcases.tgz

View File

@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER mmoroz@chromium.org MAINTAINER mmoroz@chromium.org
RUN apt-get install -y make autoconf automake libtool zlib1g-dev 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 WORKDIR libpng
COPY build.sh libpng_read_fuzzer.* png.dict $SRC/ COPY build.sh libpng_read_fuzzer.* png.dict $SRC/

View File

@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER kcwu@csie.org MAINTAINER kcwu@csie.org
RUN apt-get install -y make autoconf automake libtool pkg-config 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 WORKDIR libtsm
COPY build.sh libtsm_fuzzer.c $SRC/ COPY build.sh libtsm_fuzzer.c $SRC/

View File

@ -18,7 +18,7 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER ochang@chromium.org MAINTAINER ochang@chromium.org
RUN apt-get install -y make autoconf automake libtool pkg-config 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 WORKDIR libxml2
COPY build.sh $SRC/ COPY build.sh $SRC/

View File

@ -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/nspr nspr
RUN hg clone https://hg.mozilla.org/projects/nss nss 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 WORKDIR nss
COPY build.sh fuzzers/* $SRC/ COPY build.sh fuzzers/* $SRC/

View File

@ -17,6 +17,6 @@
FROM ossfuzz/base-libfuzzer FROM ossfuzz/base-libfuzzer
MAINTAINER kurt@roeckx.be MAINTAINER kurt@roeckx.be
RUN apt-get install -y make 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 WORKDIR openssl
COPY build.sh $SRC/ COPY build.sh $SRC/

View File

@ -17,7 +17,7 @@
FROM ossfuzz/base-libfuzzer FROM ossfuzz/base-libfuzzer
MAINTAINER mmoroz@chromium.org MAINTAINER mmoroz@chromium.org
RUN apt-get install -y make autoconf automake libtool pkg-config zlib1g-dev 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 WORKDIR ots
COPY build.sh ots_fuzzer.* $SRC/ COPY build.sh ots_fuzzer.* $SRC/
COPY seed_corpus $SRC/seed_corpus COPY seed_corpus $SRC/seed_corpus

View File

@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER wrengr@chromium.org MAINTAINER wrengr@chromium.org
RUN apt-get install -y make autoconf automake libtool 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 WORKDIR re2
COPY build.sh re2_fuzzer.* $SRC/ COPY build.sh re2_fuzzer.* $SRC/

View File

@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER mmoroz@chromium.org MAINTAINER mmoroz@chromium.org
RUN apt-get install -y make autoconf automake libtool 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 WORKDIR woff2
COPY build.sh convert_woff2ttf_fuzzer.* $SRC/ COPY build.sh convert_woff2ttf_fuzzer.* $SRC/

View File

@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER inferno@chromium.org MAINTAINER inferno@chromium.org
RUN apt-get install -y make autoconf automake libtool 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 WORKDIR zlib
COPY build.sh zlib_uncompress_fuzzer.cc $SRC/ COPY build.sh zlib_uncompress_fuzzer.cc $SRC/