1# Copyright 2016 gRPC authors. 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# Docker file for building gRPC artifacts. 16 17FROM i386/debian:jessie 18RUN sed -i '/deb http:\/\/http.debian.net\/debian jessie-updates main/d' /etc/apt/sources.list 19 20# Install Git and basic packages. 21RUN apt-get update && apt-get install -y \ 22 autoconf \ 23 autotools-dev \ 24 build-essential \ 25 bzip2 \ 26 clang \ 27 curl \ 28 gcc \ 29 gcc-multilib \ 30 git \ 31 golang \ 32 libc6 \ 33 libc6-dbg \ 34 libc6-dev \ 35 libgtest-dev \ 36 libtool \ 37 make \ 38 perl \ 39 strace \ 40 python-dev \ 41 python-setuptools \ 42 python-yaml \ 43 telnet \ 44 unzip \ 45 wget \ 46 zip && apt-get clean 47 48 49################## 50# Ruby dependencies 51 52# Install rvm 53RUN apt-get update && apt-get install -y gnupg2 54RUN gpg2 --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB 55RUN \curl -sSL https://get.rvm.io | bash -s stable 56 57# Install Ruby 2.1 58RUN /bin/bash -l -c "rvm install ruby-2.1" 59RUN /bin/bash -l -c "rvm use --default ruby-2.1" 60RUN /bin/bash -l -c "echo 'gem: --no-document' > ~/.gemrc" 61RUN /bin/bash -l -c "echo 'export PATH=/usr/local/rvm/bin:$PATH' >> ~/.bashrc" 62RUN /bin/bash -l -c "echo 'rvm --default use ruby-2.1' >> ~/.bashrc" 63RUN /bin/bash -l -c "gem install bundler -v 1.17.3 --no-document" 64 65 66################## 67# C# dependencies (needed to build grpc_csharp_ext) 68 69# Use cmake 3.6 from jessie-backports 70RUN echo "deb http://archive.debian.org/debian jessie-backports main" | tee /etc/apt/sources.list.d/jessie-backports.list 71RUN echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf 72RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list 73RUN apt-get update && apt-get install -t jessie-backports -y cmake && apt-get clean 74 75 76################## 77# Python AuditWheel dependencies (needed to check manylinux1 compatibility) 78 79RUN apt-get install -y python3 python3-pip 80RUN pip3 install auditwheel==2.1.1 81 82 83RUN mkdir /var/local/jenkins 84 85# Define the default command. 86CMD ["bash"] 87