1 # Copyright 2017 gRPC authors.
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
19 # Install JDK 8 and Git
21 RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \
22 echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list && \
23 echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list && \
24 apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
26 RUN apt-get update && apt-get -y install \
29 oracle-java8-installer \
31 apt-get clean && rm -r /var/cache/oracle-jdk8-installer/
33 ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
34 ENV PATH $PATH:$JAVA_HOME/bin
40 # Install dependencies
42 RUN apt-get update && apt-get install -y \
47 # Install Python packages from PyPI
48 RUN pip install --upgrade pip==10.0.1
49 RUN pip install virtualenv
50 RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0
53 # Trigger download of as many Gradle artifacts as possible.
54 RUN git clone --recursive --depth 1 https://github.com/grpc/grpc-java.git && \
56 ./gradlew :grpc-interop-testing:installDist -PskipCodegen=true && \
59 # Define the default command.