Nicolas Noble | ddef246 | 2015-01-06 18:08:25 -0800 | [diff] [blame] | 1 | # Base Dockerfile for gRPC dev images |
| 2 | FROM debian:latest |
| 3 | |
| 4 | # Install Git. |
| 5 | RUN 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 Emiola | d2130c3 | 2015-01-21 09:51:45 -0800 | [diff] [blame] | 16 | libgtest-dev \ |
Nicolas Noble | ddef246 | 2015-01-06 18:08:25 -0800 | [diff] [blame] | 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 |
| 28 | RUN easy_install -U pip |
| 29 | RUN pip install -U crcmod # makes downloads from cloud storage faster |
| 30 | |
| 31 | # Install GCloud |
| 32 | RUN wget https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip \ |
| 33 | && unzip google-cloud-sdk.zip && rm google-cloud-sdk.zip |
| 34 | ENV CLOUD_SDK /google-cloud-sdk |
| 35 | RUN $CLOUD_SDK/install.sh --usage-reporting=true --path-update=true --bash-completion=true --rc-path=/.bashrc --disable-installation-options |
| 36 | ENV PATH $CLOUD_SDK/bin:$PATH |
| 37 | |
Tim Emiola | d2130c3 | 2015-01-21 09:51:45 -0800 | [diff] [blame] | 38 | # 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 |
| 40 | ADD .ssh .ssh |
| 41 | RUN chmod 600 .ssh/github.rsa |
| 42 | RUN mkdir -p $HOME/.ssh && echo 'Host github.com' > $HOME/.ssh/config |
| 43 | RUN echo " IdentityFile /.ssh/github.rsa" >> $HOME/.ssh/config |
| 44 | RUN echo 'StrictHostKeyChecking no' >> $HOME/.ssh/config |
Nicolas Noble | ddef246 | 2015-01-06 18:08:25 -0800 | [diff] [blame] | 45 | |
| 46 | # Define the default command. |
| 47 | CMD ["bash"] |