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 32bit/debian:jessie 18 19RUN apt-get update && apt-get install debian-keyring && apt-key update 20 21# Install Git and basic packages. 22RUN apt-get update && apt-key update && apt-get install -y \ 23 autoconf \ 24 autotools-dev \ 25 build-essential \ 26 bzip2 \ 27 clang \ 28 curl \ 29 gcc \ 30 gcc-multilib \ 31 git \ 32 golang \ 33 libc6 \ 34 libc6-dbg \ 35 libc6-dev \ 36 libgtest-dev \ 37 libtool \ 38 make \ 39 perl \ 40 strace \ 41 python-dev \ 42 python-setuptools \ 43 python-yaml \ 44 telnet \ 45 unzip \ 46 wget \ 47 zip && apt-get clean 48 49# Install Node dependencies 50RUN touch .profile 51RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash 52RUN /bin/bash -l -c "nvm install 8 && npm install -g node-pre-gyp" 53 54 55################## 56# Ruby dependencies 57 58# Install rvm 59RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 60RUN \curl -sSL https://get.rvm.io | bash -s stable 61 62# Install Ruby 2.1 63RUN /bin/bash -l -c "rvm install ruby-2.1" 64RUN /bin/bash -l -c "rvm use --default ruby-2.1" 65RUN /bin/bash -l -c "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc" 66RUN /bin/bash -l -c "echo 'export PATH=/usr/local/rvm/bin:$PATH' >> ~/.bashrc" 67RUN /bin/bash -l -c "echo 'rvm --default use ruby-2.1' >> ~/.bashrc" 68RUN /bin/bash -l -c "gem install bundler --no-ri --no-rdoc" 69 70RUN mkdir /var/local/jenkins 71 72# Define the default command. 73CMD ["bash"] 74