Home | History | Annotate | Download | only in grpc_artifact_linux_x64
      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 
     17 FROM debian:jessie
     18 
     19 RUN apt-get update && apt-get install debian-keyring && apt-key update
     20 
     21 # Install Git and basic packages.
     22 RUN 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
     50 RUN touch .profile
     51 RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash
     52 RUN /bin/bash -l -c "nvm install 8 && npm install -g node-pre-gyp"
     53 
     54 
     55 ##################
     56 # Ruby dependencies
     57 
     58 # Install rvm
     59 RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
     60 RUN \curl -sSL https://get.rvm.io | bash -s stable
     61 
     62 # Install Ruby 2.1
     63 RUN /bin/bash -l -c "rvm install ruby-2.1"
     64 RUN /bin/bash -l -c "rvm use --default ruby-2.1"
     65 RUN /bin/bash -l -c "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
     66 RUN /bin/bash -l -c "echo 'export PATH=/usr/local/rvm/bin:$PATH' >> ~/.bashrc"
     67 RUN /bin/bash -l -c "echo 'rvm --default use ruby-2.1' >> ~/.bashrc"
     68 RUN /bin/bash -l -c "gem install bundler --no-ri --no-rdoc"
     69 
     70 
     71 ##################
     72 # PHP dependencies
     73 
     74 RUN apt-get update && apt-get install -y \
     75     php5 php5-dev php-pear phpunit
     76 
     77 ##################
     78 # Install cross compiler for ARM
     79 
     80 RUN echo 'deb http://emdebian.org/tools/debian/ jessie main' | tee -a /etc/apt/sources.list.d/crosstools.list && \
     81   curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add -
     82 
     83 RUN dpkg --add-architecture armhf && apt-get update && apt-get install -y crossbuild-essential-armhf
     84 
     85 RUN mkdir /var/local/jenkins
     86 
     87 # Define the default command.
     88 CMD ["bash"]
     89