blob: 76e585a7d0df4893eeda7cc9cd7c1119b9b50d11 [file] [log] [blame]
Nicolas Nobleddef2462015-01-06 18:08:25 -08001# Base Dockerfile for gRPC dev images
2FROM debian:latest
3
4# Install Git.
5RUN apt-get update && apt-get install -y \
6 autoconf \
7 autotools-dev \
8 build-essential \
9 bzip2 \
10 curl \
11 gcc \
12 git \
13 libc6 \
14 libc6-dbg \
15 libc6-dev \
16 libevent-dev \
17 libtool \
18 make \
19 strace \
20 python-dev \
21 python-setuptools \
22 telnet \
23 unzip \
24 wget \
25 zip && apt-get clean
26
27# Install useful useful python modules
28RUN easy_install -U pip
29RUN pip install -U crcmod # makes downloads from cloud storage faster
30
31# Install GCloud
32RUN wget https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip \
33 && unzip google-cloud-sdk.zip && rm google-cloud-sdk.zip
34ENV CLOUD_SDK /google-cloud-sdk
35RUN $CLOUD_SDK/install.sh --usage-reporting=true --path-update=true --bash-completion=true --rc-path=/.bashrc --disable-installation-options
36ENV PATH $CLOUD_SDK/bin:$PATH
37
38# Install gcompute-tools to allow access to private git-on-borg repos
39RUN git clone https://gerrit.googlesource.com/gcompute-tools /var/local/git/gcompute-tools
40
41# Start the daemon that allows access to private git-on-borg repos
42RUN /var/local/git/gcompute-tools/git-cookie-authdaemon
43
44# Install the grpc-tools scripts dir from git
45RUN git clone https://team.googlesource.com/one-platform-grpc-team/grpc-tools /var/local/git/grpc-tools
46
47# Install the grpc-protobuf dir that has the protoc patch
48RUN git clone https://team.googlesource.com/one-platform-grpc-team/protobuf /var/local/git/protobuf
49
50# Install the patched version of protoc
51RUN cd /var/local/git/protobuf && \
52 ./autogen.sh && \
53 ./configure --prefix=/usr && \
54 make && make check && make install && make clean
55
56# Define the default command.
57CMD ["bash"]