blob: be1b69b0dc552153d5b164eb65ec0611786597c3 [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 \
Tim Emiolad2130c32015-01-21 09:51:45 -080016 libgtest-dev \
Nicolas Nobleddef2462015-01-06 18:08:25 -080017 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
Tim Emiolad2130c32015-01-21 09:51:45 -080038# Install a GitHub SSH service credential that gives access to the GitHub repo while it's private
39# TODO: remove this once the repo is public
40ADD .ssh .ssh
41RUN chmod 600 .ssh/github.rsa
42RUN mkdir -p $HOME/.ssh && echo 'Host github.com' > $HOME/.ssh/config
43RUN echo " IdentityFile /.ssh/github.rsa" >> $HOME/.ssh/config
44RUN echo 'StrictHostKeyChecking no' >> $HOME/.ssh/config
Nicolas Nobleddef2462015-01-06 18:08:25 -080045
46# Define the default command.
47CMD ["bash"]