1# Copyright 2016 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 software-properties-common python-software-properties 20RUN add-apt-repository ppa:webupd8team/java 21RUN apt-get update && apt-get -y install \ 22 vim \ 23 build-essential \ 24 openjdk-8-jdk \ 25 make \ 26 curl \ 27 autoconf \ 28 libtool \ 29 rsync 30 31# Install dependencies 32 33RUN apt-get update && apt-get install -y \ 34 python-all-dev \ 35 python3-all-dev \ 36 python-pip 37 38# Install Python packages from PyPI 39RUN pip install --upgrade pip==10.0.1 40RUN pip install virtualenv 41RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0 42 43#======================== 44# Bazel installation 45 46RUN git clone --recursive https://github.com/grpc/grpc grpc 47WORKDIR $SRC/grpc/ 48COPY build.sh $SRC/ 49