• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 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
18
19RUN apt-get update && apt-get install -y autoconf automake \
20      cmake cmake-curses-gui libre2-dev \
21      libicu-dev libboost-dev libboost-thread-dev libboost-system-dev \
22      libgflags-dev libgoogle-glog-dev libssl-dev \
23      protobuf-compiler libtool wget default-jre icu-devtools
24RUN apt-get install -y libgtest-dev && \
25    cd /usr/src/googletest/googletest && \
26		mkdir build && \
27		cd build && \
28		cmake .. && \
29		make && \
30		mkdir /usr/local/lib/googletest && \
31		ln -sn /usr/local/lib/googletest/libgtest.a /usr/lib/libgtest.a && \
32		ln -sn /usr/local/lib/googletest/libgtest_main.a /usr/lib/libgtest_main.a && \
33    rm /lib/x86_64-linux-gnu/libgtest.a && \
34    ln -sn /usr/local/lib/googletest/libgtest.a /lib/x86_64-linux-gnu/libgtest.a
35RUN wget https://github.com/unicode-org/icu/releases/download/release-66-rc/icu4c-66rc-src.tgz && \
36    tar xzvf icu4c-66rc-src.tgz
37RUN git clone https://github.com/google/libphonenumber
38
39COPY build.sh $SRC/
40COPY phonefuzz.cc $SRC/
41WORKDIR $SRC/
42