• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 Google LLC
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-rust
18
19# Packages taken from:
20# * https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md#dependency-build-instructions
21# * https://github.com/bitcoin/bitcoin/blob/master/depends/README.md#for-linux-including-i386-arm-cross-compilation
22RUN apt-get update && apt-get install -y \
23  build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 \
24  make automake cmake curl g++-multilib libtool binutils-gold bsdmainutils pkg-config patch bison \
25  wget zip
26
27RUN git clone --depth=1 https://github.com/bitcoin/bitcoin.git bitcoin-core
28RUN git clone --depth=1 https://github.com/bitcoin-core/qa-assets bitcoin-core/assets
29RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz
30RUN git clone --depth 1 https://github.com/bitcoin-core/secp256k1.git
31RUN git clone --depth 1 https://github.com/randombit/botan.git
32RUN git clone --depth 1 https://github.com/trezor/trezor-firmware.git
33RUN git clone --depth 1 https://github.com/google/wycheproof.git
34RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_1_74_0.tar.bz2
35WORKDIR bitcoin-core
36COPY build.sh $SRC/
37COPY build_cryptofuzz.sh $SRC/
38