• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2015 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
15FROM alpine:3.3
16
17# Install Git and basic packages.
18RUN apk update && apk add \
19  autoconf \
20  automake \
21  bzip2 \
22  build-base \
23  cmake \
24  ccache \
25  curl \
26  gcc \
27  git \
28  libtool \
29  linux-headers \
30  make \
31  perl \
32  strace \
33  python-dev \
34  py-pip \
35  unzip \
36  wget \
37  zip
38
39# Install Python packages from PyPI
40RUN pip install --upgrade pip==10.0.1
41RUN pip install virtualenv
42RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.0.post1 six==1.10.0
43
44# Google Cloud platform API libraries
45RUN pip install --upgrade google-api-python-client
46
47# Prepare ccache
48RUN ln -s /usr/bin/ccache /usr/local/bin/gcc
49RUN ln -s /usr/bin/ccache /usr/local/bin/g++
50RUN ln -s /usr/bin/ccache /usr/local/bin/cc
51RUN ln -s /usr/bin/ccache /usr/local/bin/c++
52
53RUN mkdir -p /var/local/jenkins
54
55# Define the default command.
56CMD ["bash"]
57