• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 Google Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15################################################################################
16
17FROM gcr.io/oss-fuzz-base/base-builder
18MAINTAINER guidovranken@gmail.com
19
20RUN apt-get update && apt-get install -y software-properties-common python-software-properties make autoconf automake libtool build-essential cmake libboost-all-dev wget mercurial gyp ninja-build zlib1g-dev libsqlite3-dev
21
22# BoringSSL needs Go to build
23RUN add-apt-repository -y ppa:gophers/archive && apt-get update && apt-get install -y golang-1.9-go
24RUN ln -s /usr/lib/go-1.9/bin/go /usr/bin/go
25
26RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz
27RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz-corpora
28RUN git clone --depth 1 https://github.com/openssl/openssl
29
30RUN git clone --depth 1 https://boringssl.googlesource.com/boringssl
31RUN git clone --depth 1 https://github.com/libressl-portable/portable libressl
32RUN cd $SRC/libressl && ./update.sh
33RUN git clone --depth 1 https://github.com/weidai11/cryptopp/
34RUN git clone --depth 1 https://dev.gnupg.org/source/libgcrypt.git
35RUN wget https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.36.tar.bz2
36RUN git clone --depth 1 -b oss-fuzz https://github.com/project-everest/hacl-star evercrypt
37RUN git clone --depth 1 https://github.com/google/cityhash.git
38RUN git clone --depth 1 https://github.com/golang/go
39RUN git clone --depth 1 https://github.com/randombit/botan.git
40RUN git clone --depth 1 https://github.com/wolfSSL/wolfssl.git
41RUN git clone --depth 1 https://github.com/ARMmbed/mbed-crypto.git
42RUN hg clone https://hg.mozilla.org/projects/nspr
43RUN hg clone https://hg.mozilla.org/projects/nss
44RUN apt-get remove -y libunwind8
45
46COPY build.sh $SRC/
47