Skip to content

Commit

Permalink
[infra] making shallow git clones. fixes yaml#42
Browse files Browse the repository at this point in the history
  • Loading branch information
mikea committed Nov 29, 2016
1 parent 6a493eb commit cf248c4
Show file tree
Hide file tree
Showing 24 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion infra/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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
COPY build.sh $src/
"""
Expand Down
2 changes: 1 addition & 1 deletion projects/boringssl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/
2 changes: 1 addition & 1 deletion projects/c-ares/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/
2 changes: 1 addition & 1 deletion projects/curl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/

2 changes: 1 addition & 1 deletion projects/expat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/
24 changes: 12 additions & 12 deletions projects/ffmpeg/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
4 changes: 2 additions & 2 deletions projects/file/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/
2 changes: 1 addition & 1 deletion projects/freetype2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/
2 changes: 1 addition & 1 deletion projects/harfbuzz/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/
2 changes: 1 addition & 1 deletion projects/json/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/
2 changes: 1 addition & 1 deletion projects/lcms/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/
2 changes: 1 addition & 1 deletion projects/libarchive/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ MAINTAINER [email protected]
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/
4 changes: 2 additions & 2 deletions projects/libass/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/
2 changes: 1 addition & 1 deletion projects/libchewing/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/
2 changes: 1 addition & 1 deletion projects/libjpeg-turbo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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
Expand Down
2 changes: 1 addition & 1 deletion projects/libpng/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/
2 changes: 1 addition & 1 deletion projects/libtsm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/
2 changes: 1 addition & 1 deletion projects/libxml2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/
Expand Down
2 changes: 1 addition & 1 deletion projects/nss/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
2 changes: 1 addition & 1 deletion projects/openssl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/
2 changes: 1 addition & 1 deletion projects/ots/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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
2 changes: 1 addition & 1 deletion projects/re2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/
2 changes: 1 addition & 1 deletion projects/woff2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/
2 changes: 1 addition & 1 deletion projects/zlib/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ FROM ossfuzz/base-libfuzzer
MAINTAINER [email protected]
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/

0 comments on commit cf248c4

Please sign in to comment.