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 18 19# We use compile_go_fuzzer in this set up and also go itself 20FROM gcr.io/oss-fuzz-base/base-builder-go 21 22RUN apt-get update && apt-get install -y libssl-dev pkg-config autoconf automake libtool bison flex wget make \ 23 autoconf \ 24 automake \ 25 sudo \ 26 gcc \ 27 g++ \ 28 python-dev \ 29 cmake \ 30 ninja-build 31 32RUN wget https://sourceforge.net/projects/boost/files/boost/1.70.0/boost_1_70_0.tar.gz && \ 33 tar xzf boost_1_70_0.tar.gz && \ 34 cd boost_1_70_0 && \ 35 ./bootstrap.sh --with-toolset=clang && \ 36 ./b2 clean && \ 37 ./b2 toolset=clang cxxflags="-stdlib=libc++" linkflags="-stdlib=libc++" -j$(nproc) install && \ 38 cd .. && \ 39 rm -rf boost_1_70_0 40 41#libboost-all-dev 42RUN git clone --depth 1 https://github.com/apache/thrift 43WORKDIR $SRC/thrift 44COPY build.sh $SRC/ 45