diff options
author | Devin Jeanpierre <jeanpierreda@gmail.com> | 2017-05-01 23:31:02 -0700 |
---|---|---|
committer | Kostya Serebryany <konstantin.s.serebryany@gmail.com> | 2017-05-01 23:31:02 -0700 |
commit | 330386686d6e7b84e9fd927083d3d9cf681835b1 (patch) | |
tree | 04274d779612e66be7ecc51765b20a3ec96d0cf6 /projects | |
parent | d5ac427bf877a68062f226f34f9258901153a494 (diff) | |
download | oss-fuzz-330386686d6e7b84e9fd927083d3d9cf681835b1.tar.gz |
Use apt-get update && apt-get install, per best practices: (#561)
https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
I ran into this because I was getting errors locally, like:
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/libdpkg-perl_1.18.4ubuntu1.1_all.deb 404 Not Found [IP: 91.189.88.149 80]
It turns out you get these if you don't update, and the official best practices are to `run apt-get update && apt-get install`. In fact, running _any_ apt-get install command without the apt-get update && before it can result in unfortunate caching artifacts -- see "cache busting". (P.S. thanks to Peng on Freenode for helping me, I'm bad at Ubuntu.)
So:
sed -re \
's/RUN apt-get ((-y )?(install|build-dep))/RUN apt-get update \&\& apt-get \1/' -i \
projects/**/Dockerfile
I also manually fixed the cases that already ran apt-get update in their Dockerfile:
dlplibs/Dockerfile
grpc/Dockerfile
libreoffice/Dockerfile
Diffstat (limited to 'projects')
48 files changed, 51 insertions, 54 deletions
diff --git a/projects/arduinojson/Dockerfile b/projects/arduinojson/Dockerfile index c0357e4c5..66fb411d8 100644 --- a/projects/arduinojson/Dockerfile +++ b/projects/arduinojson/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER oss-fuzz@benoitblanchon.fr -RUN apt-get install -y make zip git +RUN apt-get update && apt-get install -y make zip git RUN git clone --depth 1 https://github.com/bblanchon/ArduinoJson.git arduinojson WORKDIR arduinojson COPY build.sh $SRC/ diff --git a/projects/boringssl/Dockerfile b/projects/boringssl/Dockerfile index 2de033a07..4760fbfa2 100644 --- a/projects/boringssl/Dockerfile +++ b/projects/boringssl/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER mike.aizatsky@gmail.com -RUN apt-get install -y cmake ninja-build golang +RUN apt-get update && apt-get install -y cmake ninja-build golang RUN git clone --depth 1 https://boringssl.googlesource.com/boringssl COPY build.sh $SRC/ diff --git a/projects/botan/Dockerfile b/projects/botan/Dockerfile index 63367c4bc..d056cf2be 100644 --- a/projects/botan/Dockerfile +++ b/projects/botan/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER jack@randombit.net -RUN apt-get install -y make python +RUN apt-get update && apt-get install -y make python RUN git clone --depth 1 https://github.com/randombit/botan.git botan RUN git clone --depth 1 https://github.com/randombit/crypto-corpus.git crypto-corpus WORKDIR botan diff --git a/projects/brotli/Dockerfile b/projects/brotli/Dockerfile index a502f2ccc..db2538271 100644 --- a/projects/brotli/Dockerfile +++ b/projects/brotli/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER eustas@chromium.org -RUN apt-get install -y cmake libtool make +RUN apt-get update && apt-get install -y cmake libtool make RUN git clone --depth 1 https://github.com/google/brotli.git WORKDIR brotli diff --git a/projects/c-ares/Dockerfile b/projects/c-ares/Dockerfile index 1534e9b14..96b4eec46 100644 --- a/projects/c-ares/Dockerfile +++ b/projects/c-ares/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER mmoroz@chromium.org -RUN apt-get install -y make autoconf automake libtool +RUN apt-get update && apt-get install -y make autoconf automake libtool RUN git clone --depth 1 https://github.com/c-ares/c-ares.git WORKDIR c-ares COPY build.sh $SRC/ diff --git a/projects/curl/Dockerfile b/projects/curl/Dockerfile index 0069fbdee..aa0e82e45 100644 --- a/projects/curl/Dockerfile +++ b/projects/curl/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER dvyukov@google.com -RUN apt-get install -y make autoconf automake libtool libssl-dev zlib1g-dev +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 WORKDIR curl diff --git a/projects/dlplibs/Dockerfile b/projects/dlplibs/Dockerfile index 3ba695967..ebed2c8cb 100644 --- a/projects/dlplibs/Dockerfile +++ b/projects/dlplibs/Dockerfile @@ -19,11 +19,10 @@ MAINTAINER dtardon@redhat.com # enable source repos RUN sed -i -e '/^#\s*deb-src.*\smain\s\+restricted/s/^#//' /etc/apt/sources.list # install build requirements -RUN apt-get update -RUN apt-get build-dep -y \ +RUN apt-get update && apt-get build-dep -y \ libmspub librevenge libcdr libvisio libpagemaker libfreehand libwpd \ libwpg libwps libmwaw libe-book libabw libetonyek -RUN apt-get install -y liblzma-dev libpng-dev wget +RUN apt-get update && apt-get install -y liblzma-dev libpng-dev wget ADD https://dev-www.libreoffice.org/src/lcms2-2.8.tar.gz $SRC/ # download fuzzing corpora ADD https://dev-www.libreoffice.org/corpus/olefuzzer_seed_corpus.zip \ diff --git a/projects/expat/Dockerfile b/projects/expat/Dockerfile index 5ce25eea9..d3499e7e1 100644 --- a/projects/expat/Dockerfile +++ b/projects/expat/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER mike.aizatsky@gmail.com -RUN apt-get install -y make autoconf automake libtool docbook2x +RUN apt-get update && apt-get install -y make autoconf automake libtool docbook2x RUN git clone --depth 1 https://github.com/libexpat/libexpat expat WORKDIR expat diff --git a/projects/ffmpeg/Dockerfile b/projects/ffmpeg/Dockerfile index d5f2f5a28..05916a43d 100644 --- a/projects/ffmpeg/Dockerfile +++ b/projects/ffmpeg/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER mmoroz@chromium.org -RUN apt-get install -y make autoconf automake libtool build-essential \ +RUN apt-get update && apt-get install -y make autoconf automake libtool build-essential \ libass-dev libfreetype6-dev libsdl1.2-dev \ libvdpau-dev libxcb1-dev libxcb-shm0-dev \ pkg-config texinfo libbz2-dev zlib1g-dev nasm yasm cmake mercurial wget \ diff --git a/projects/file/Dockerfile b/projects/file/Dockerfile index f78508551..57c5479b1 100644 --- a/projects/file/Dockerfile +++ b/projects/file/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER mike.aizatsky@gmail.com -RUN apt-get install -y make autoconf automake libtool shtool +RUN apt-get update && 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 476f60791..581adffc6 100644 --- a/projects/freetype2/Dockerfile +++ b/projects/freetype2/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER mike.aizatsky@gmail.com -RUN apt-get install -y make autoconf libtool libarchive-dev +RUN apt-get update && apt-get install -y make autoconf libtool libarchive-dev # Get some files for the seed corpus ADD https://github.com/adobe-fonts/adobe-variable-font-prototype/releases/download/1.001/AdobeVFPrototype.otf $SRC/font-corpus/ diff --git a/projects/gnutls/Dockerfile b/projects/gnutls/Dockerfile index 6c07d30c8..6f7c00f33 100644 --- a/projects/gnutls/Dockerfile +++ b/projects/gnutls/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER alex.gaynor@gmail.com -RUN apt-get install -y make autoconf automake libtool autopoint libnettle6 nettle-dev pkg-config gperf bison autogen texinfo curl +RUN apt-get update && apt-get install -y make autoconf automake libtool autopoint libnettle6 nettle-dev pkg-config gperf bison autogen texinfo curl RUN git clone --depth=1 https://gitlab.com/gnutls/gnutls.git RUN cd gnutls && git submodule update --init diff --git a/projects/grpc/Dockerfile b/projects/grpc/Dockerfile index 6038f42be..6e35a67d1 100644 --- a/projects/grpc/Dockerfile +++ b/projects/grpc/Dockerfile @@ -17,10 +17,9 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER mattkwong@google.com -RUN apt-get install -y software-properties-common python-software-properties +RUN apt-get update && apt-get install -y software-properties-common python-software-properties RUN add-apt-repository ppa:webupd8team/java -RUN apt-get update -RUN apt-get -y install \ +RUN apt-get update && apt-get -y install \ vim \ build-essential \ openjdk-8-jdk \ diff --git a/projects/guetzli/Dockerfile b/projects/guetzli/Dockerfile index e65aceb58..28ad61545 100644 --- a/projects/guetzli/Dockerfile +++ b/projects/guetzli/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER robryk@google.com -RUN apt-get install -y make autoconf automake libtool libpng-dev pkg-config curl +RUN apt-get update && apt-get install -y make autoconf automake libtool libpng-dev pkg-config curl RUN mkdir afl-testcases RUN cd afl-testcases/ && curl http://lcamtuf.coredump.cx/afl/demo/afl_testcases.tgz | tar -xz diff --git a/projects/h2o/Dockerfile b/projects/h2o/Dockerfile index ba50c3e88..ad2f4e480 100644 --- a/projects/h2o/Dockerfile +++ b/projects/h2o/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER jonathan.foote@gmail.com -RUN apt-get install -y make autoconf automake libtool cmake zlib1g-dev pkg-config libssl-dev +RUN apt-get update && apt-get install -y make autoconf automake libtool cmake zlib1g-dev pkg-config libssl-dev RUN git clone https://github.com/h2o/h2o WORKDIR h2o COPY build.sh $SRC/ diff --git a/projects/harfbuzz/Dockerfile b/projects/harfbuzz/Dockerfile index 9ebb8b86f..ca4ba47c5 100644 --- a/projects/harfbuzz/Dockerfile +++ b/projects/harfbuzz/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER mmoroz@chromium.org -RUN apt-get install -y make autoconf automake libtool ragel pkg-config +RUN apt-get update && apt-get install -y make autoconf automake libtool ragel pkg-config RUN git clone --depth 1 https://anongit.freedesktop.org/git/harfbuzz.git WORKDIR harfbuzz diff --git a/projects/icu/Dockerfile b/projects/icu/Dockerfile index ed61fb3f8..a89bdf545 100644 --- a/projects/icu/Dockerfile +++ b/projects/icu/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER mike.aizatsky@gmail.com -RUN apt-get install -y make +RUN apt-get update && apt-get install -y make RUN svn co http://source.icu-project.org/repos/icu/trunk/icu4c/ icu COPY build.sh *.cc *.h *.dict *.options $SRC/ diff --git a/projects/irssi/Dockerfile b/projects/irssi/Dockerfile index 753fcf8c4..1477afdf3 100644 --- a/projects/irssi/Dockerfile +++ b/projects/irssi/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER joseph.bisch@gmail.com -RUN apt-get install -y make autoconf automake libtool pkg-config libglib2.0-dev libncurses5-dev libssl-dev openssl lynx +RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config libglib2.0-dev libncurses5-dev libssl-dev openssl lynx RUN git clone https://github.com/irssi/irssi WORKDIR irssi diff --git a/projects/json/Dockerfile b/projects/json/Dockerfile index 82afe016a..18203ea19 100644 --- a/projects/json/Dockerfile +++ b/projects/json/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER vitalybuka@chromium.org -RUN apt-get install -y binutils make +RUN apt-get update && apt-get install -y binutils make RUN git clone --depth 1 -b develop https://github.com/nlohmann/json.git WORKDIR json/ diff --git a/projects/lcms/Dockerfile b/projects/lcms/Dockerfile index d73ca98ac..c72053745 100644 --- a/projects/lcms/Dockerfile +++ b/projects/lcms/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER kcwu@google.com -RUN apt-get install -y make autoconf automake libtool +RUN apt-get update && apt-get install -y make autoconf automake libtool 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 84a76f1c4..b2d9d0b9a 100644 --- a/projects/libarchive/Dockerfile +++ b/projects/libarchive/Dockerfile @@ -19,7 +19,7 @@ MAINTAINER kcwu@google.com # Installing optional libraries can utilize more code path and/or improve # performance (avoid calling external programs). -RUN apt-get install -y make autoconf automake libtool pkg-config \ +RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config \ libbz2-dev liblzo2-dev liblzma-dev liblz4-dev libz-dev \ libxml2-dev libssl-dev libacl1-dev libattr1-dev RUN git clone --depth 1 https://github.com/libarchive/libarchive.git diff --git a/projects/libass/Dockerfile b/projects/libass/Dockerfile index c9bdd6563..bc1999d41 100644 --- a/projects/libass/Dockerfile +++ b/projects/libass/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER eugeni.stepanov@gmail.com -RUN apt-get install -y make autoconf automake libtool pkg-config libfreetype6-dev libfontconfig1-dev +RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config libfreetype6-dev libfontconfig1-dev RUN git clone --depth 1 https://github.com/libass/libass.git RUN git clone --depth 1 https://github.com/behdad/fribidi.git diff --git a/projects/libchewing/Dockerfile b/projects/libchewing/Dockerfile index 70ca53d3d..b361dac02 100644 --- a/projects/libchewing/Dockerfile +++ b/projects/libchewing/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER kcwu@csie.org -RUN apt-get install -y make autoconf automake libtool texinfo +RUN apt-get update && apt-get install -y make autoconf automake libtool texinfo RUN git clone --depth 1 https://github.com/chewing/libchewing.git WORKDIR libchewing diff --git a/projects/libidn2/Dockerfile b/projects/libidn2/Dockerfile index 1eb502752..f0671f2e7 100644 --- a/projects/libidn2/Dockerfile +++ b/projects/libidn2/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER n.mavrogiannopoulos@gmail.com -RUN apt-get install -y make autoconf automake gettext libtool autopoint pkg-config gengetopt curl gperf +RUN apt-get update && apt-get install -y make autoconf automake gettext libtool autopoint pkg-config gengetopt curl gperf RUN git clone --depth=1 https://gitlab.com/libidn/libidn2.git RUN cd libidn2 && git submodule update --init diff --git a/projects/libjpeg-turbo/Dockerfile b/projects/libjpeg-turbo/Dockerfile index dcff2c361..af9db9efd 100644 --- a/projects/libjpeg-turbo/Dockerfile +++ b/projects/libjpeg-turbo/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER alex.gaynor@gmail.com -RUN apt-get install -y make autoconf automake libtool nasm curl +RUN apt-get update && apt-get install -y make autoconf automake libtool nasm curl RUN git clone --depth 1 https://github.com/libjpeg-turbo/libjpeg-turbo RUN mkdir afl-testcases diff --git a/projects/libplist/Dockerfile b/projects/libplist/Dockerfile index 2ca32f689..76432e1de 100644 --- a/projects/libplist/Dockerfile +++ b/projects/libplist/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER nikias@gmx.li -RUN apt-get install -y make autoconf automake libtool pkg-config +RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config RUN git clone --depth 1 https://github.com/libimobiledevice/libplist WORKDIR libplist diff --git a/projects/libpng/Dockerfile b/projects/libpng/Dockerfile index 845c78c76..796b05b8b 100644 --- a/projects/libpng/Dockerfile +++ b/projects/libpng/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER mmoroz@chromium.org -RUN apt-get install -y make autoconf automake libtool zlib1g-dev +RUN apt-get update && apt-get install -y make autoconf automake libtool zlib1g-dev RUN git clone --depth 1 https://github.com/glennrp/libpng.git WORKDIR libpng diff --git a/projects/libprotobuf-mutator/Dockerfile b/projects/libprotobuf-mutator/Dockerfile index 6ae60690a..5eb0da030 100644 --- a/projects/libprotobuf-mutator/Dockerfile +++ b/projects/libprotobuf-mutator/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER vitalybuka@chromium.org -RUN apt-get install -y make autoconf automake libtool pkg-config cmake \ +RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config cmake \ ninja-build liblzma-dev libz-dev docbook2x RUN git clone --depth 1 https://github.com/google/libprotobuf-mutator.git diff --git a/projects/libreoffice/Dockerfile b/projects/libreoffice/Dockerfile index cd7784149..bcb9912dc 100644 --- a/projects/libreoffice/Dockerfile +++ b/projects/libreoffice/Dockerfile @@ -19,9 +19,8 @@ MAINTAINER officesecurity@lists.freedesktop.org # enable source repos RUN sed -i -e '/^#\s*deb-src.*\smain\s\+restricted/s/^#//' /etc/apt/sources.list #build requirements -RUN apt-get update -RUN apt-get build-dep -y libreoffice -RUN apt-get install -y wget yasm +RUN apt-get update && apt-get build-dep -y libreoffice +RUN apt-get update && apt-get install -y wget yasm #cache build dependencies ADD https://dev-www.libreoffice.org/src/c3c1a8ba7452950636e871d25020ce0d-pt-serif-font-1.0000W.tar.gz \ https://dev-www.libreoffice.org/src/c74b7223abe75949b4af367942d96c7a-crosextrafonts-carlito-20130920.tar.gz \ diff --git a/projects/libssh/Dockerfile b/projects/libssh/Dockerfile index 7f2afd6a1..683465dab 100644 --- a/projects/libssh/Dockerfile +++ b/projects/libssh/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER alex.gaynor@gmail.com -RUN apt-get install -y cmake zlib1g-dev libssl-dev +RUN apt-get update && apt-get install -y cmake zlib1g-dev libssl-dev # Can't use --depth=1 because git.libssh.org is using the "dumb" HTTP # transport, which doesn't support it. diff --git a/projects/libteken/Dockerfile b/projects/libteken/Dockerfile index 4bc72ef30..8eb252f10 100644 --- a/projects/libteken/Dockerfile +++ b/projects/libteken/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER kcwu@csie.org -RUN apt-get install -y pmake +RUN apt-get update && apt-get install -y pmake RUN svn co https://svn.freebsd.org/base/head/sys/teken libteken WORKDIR libteken COPY build.sh libteken_fuzzer.c $SRC/ diff --git a/projects/libtsm/Dockerfile b/projects/libtsm/Dockerfile index 61b196a04..7b162ea83 100644 --- a/projects/libtsm/Dockerfile +++ b/projects/libtsm/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER kcwu@csie.org -RUN apt-get install -y make autoconf automake libtool pkg-config +RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config RUN git clone --depth 1 git://people.freedesktop.org/~dvdhrm/libtsm WORKDIR libtsm diff --git a/projects/libxml2/Dockerfile b/projects/libxml2/Dockerfile index fb8b7fef3..a944be780 100644 --- a/projects/libxml2/Dockerfile +++ b/projects/libxml2/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER ochang@chromium.org -RUN apt-get install -y make autoconf automake libtool pkg-config +RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config RUN git clone --depth 1 git://git.gnome.org/libxml2 WORKDIR libxml2 diff --git a/projects/libyaml/Dockerfile b/projects/libyaml/Dockerfile index cd8d328fa..dd99a1c50 100644 --- a/projects/libyaml/Dockerfile +++ b/projects/libyaml/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER alex.gaynor@gmail.com -RUN apt-get install -y make autoconf automake libtool +RUN apt-get update && apt-get install -y make autoconf automake libtool RUN git clone --depth=1 https://github.com/yaml/libyaml RUN zip libyaml_fuzzer_seed_corpus.zip libyaml/examples/* diff --git a/projects/llvm_libcxxabi/Dockerfile b/projects/llvm_libcxxabi/Dockerfile index 49ef8616a..fcba44ff2 100644 --- a/projects/llvm_libcxxabi/Dockerfile +++ b/projects/llvm_libcxxabi/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER kcc@google.com -RUN apt-get install -y subversion +RUN apt-get update && apt-get install -y subversion RUN svn co https://llvm.org/svn/llvm-project/libcxxabi/trunk llvm_libcxxabi WORKDIR llvm_libcxxabi diff --git a/projects/nghttp2/Dockerfile b/projects/nghttp2/Dockerfile index 735826a4f..ff5cb94e2 100644 --- a/projects/nghttp2/Dockerfile +++ b/projects/nghttp2/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER tatsuhiro.t@gmail.com -RUN apt-get install -y make autoconf automake libtool pkg-config +RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config RUN git clone --depth 1 https://github.com/nghttp2/nghttp2.git WORKDIR nghttp2 COPY build.sh *.options $SRC/ diff --git a/projects/nss/Dockerfile b/projects/nss/Dockerfile index 375783933..0a4df4fb1 100644 --- a/projects/nss/Dockerfile +++ b/projects/nss/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER mmoroz@chromium.org -RUN apt-get install -y make mercurial zlib1g-dev gyp ninja-build libssl-dev +RUN apt-get update && apt-get install -y make mercurial zlib1g-dev gyp ninja-build libssl-dev RUN hg clone https://hg.mozilla.org/projects/nspr nspr RUN hg clone https://hg.mozilla.org/projects/nss nss diff --git a/projects/openssl/Dockerfile b/projects/openssl/Dockerfile index a18ccb334..7dd83600c 100644 --- a/projects/openssl/Dockerfile +++ b/projects/openssl/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER kurt@roeckx.be -RUN apt-get install -y make +RUN apt-get update && apt-get install -y make RUN git clone --depth 1 https://github.com/openssl/openssl.git WORKDIR openssl COPY build.sh *.options $SRC/ diff --git a/projects/opus/Dockerfile b/projects/opus/Dockerfile index f8d8781cf..bba12370e 100644 --- a/projects/opus/Dockerfile +++ b/projects/opus/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER flim@google.com -RUN apt-get install -y make autoconf automake libtool wget +RUN apt-get update && apt-get install -y make autoconf automake libtool wget RUN git clone https://git.xiph.org/opus.git RUN wget https://opus-codec.org/static/testvectors/opus_testvectors.tar.gz diff --git a/projects/ots/Dockerfile b/projects/ots/Dockerfile index e1fa778df..4b867084d 100644 --- a/projects/ots/Dockerfile +++ b/projects/ots/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER mmoroz@chromium.org -RUN apt-get install -y make autoconf automake libtool pkg-config zlib1g-dev +RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config zlib1g-dev RUN git clone --depth 1 https://github.com/khaledhosny/ots.git WORKDIR ots COPY build.sh ots-fuzzer.* $SRC/ diff --git a/projects/pcre2/Dockerfile b/projects/pcre2/Dockerfile index ef94ed004..72e8a3463 100644 --- a/projects/pcre2/Dockerfile +++ b/projects/pcre2/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER kcc@google.com -RUN apt-get install -y make autoconf automake libtool subversion +RUN apt-get update && apt-get install -y make autoconf automake libtool subversion RUN svn co svn://vcs.exim.org/pcre2/code/trunk pcre2 WORKDIR pcre2 diff --git a/projects/re2/Dockerfile b/projects/re2/Dockerfile index 05a40f1d6..038e09cf3 100644 --- a/projects/re2/Dockerfile +++ b/projects/re2/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER wrengr@chromium.org -RUN apt-get install -y make autoconf automake libtool +RUN apt-get update && apt-get install -y make autoconf automake libtool RUN git clone --depth 1 https://code.googlesource.com/re2 WORKDIR re2 diff --git a/projects/sqlite3/Dockerfile b/projects/sqlite3/Dockerfile index c39de814e..a1b0e2802 100644 --- a/projects/sqlite3/Dockerfile +++ b/projects/sqlite3/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER tanin@google.com -RUN apt-get install -y make autoconf automake libtool curl tcl +RUN apt-get update && apt-get install -y make autoconf automake libtool curl tcl # We won't be able to poll fossil for changes, so this will build # only once a day. diff --git a/projects/tor/Dockerfile b/projects/tor/Dockerfile index 09358305f..4c12777a5 100644 --- a/projects/tor/Dockerfile +++ b/projects/tor/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER nickm@torproject.org -RUN apt-get install -y zlib1g zlib1g-dev libevent-dev libevent-2.0 openssl autoconf automake libssl-dev make +RUN apt-get update && apt-get install -y zlib1g zlib1g-dev libevent-dev libevent-2.0 openssl autoconf automake libssl-dev make RUN git clone https://git.torproject.org/tor.git RUN git clone https://git.torproject.org/fuzzing-corpora.git tor-fuzz-corpora WORKDIR tor diff --git a/projects/tpm2/Dockerfile b/projects/tpm2/Dockerfile index e4446c7ba..3cd80b8ed 100644 --- a/projects/tpm2/Dockerfile +++ b/projects/tpm2/Dockerfile @@ -5,7 +5,7 @@ # Defines a docker image that can build fuzzers. # FROM gcr.io/oss-fuzz-base/base-builder -RUN apt-get install -y make libssl-dev binutils libgcc-5-dev +RUN apt-get update && apt-get install -y make libssl-dev binutils libgcc-5-dev RUN git clone --depth 1 https://chromium.googlesource.com/chromiumos/third_party/tpm2 WORKDIR tpm2 RUN cp /src/tpm2/fuzz/build.sh /src/ diff --git a/projects/wireshark/Dockerfile b/projects/wireshark/Dockerfile index 48523ba70..40f6a339c 100644 --- a/projects/wireshark/Dockerfile +++ b/projects/wireshark/Dockerfile @@ -17,7 +17,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER Jakub Zawadzki <darkjames-ws@darkjames.pl> -RUN apt-get install -y make autoconf automake libtool libtool-bin \ +RUN apt-get update && apt-get install -y make autoconf automake libtool libtool-bin \ flex bison \ libglib2.0-dev libgcrypt20-dev diff --git a/projects/woff2/Dockerfile b/projects/woff2/Dockerfile index fdef9d016..fa42046d4 100644 --- a/projects/woff2/Dockerfile +++ b/projects/woff2/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER mmoroz@chromium.org -RUN apt-get install -y make autoconf automake libtool +RUN apt-get update && apt-get install -y make autoconf automake libtool RUN git clone --depth 1 --recursive https://github.com/google/woff2 WORKDIR woff2 diff --git a/projects/zlib/Dockerfile b/projects/zlib/Dockerfile index 32a48172a..dcd0807a8 100644 --- a/projects/zlib/Dockerfile +++ b/projects/zlib/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER inferno@chromium.org -RUN apt-get install -y make autoconf automake libtool +RUN apt-get update && apt-get install -y make autoconf automake libtool RUN git clone --depth 1 https://github.com/madler/zlib.git WORKDIR zlib |