Skip to content

Commit

Permalink
Further cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasnoble committed Feb 28, 2015
1 parent 706239b commit 2f02bb0
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 30 deletions.
2 changes: 1 addition & 1 deletion tools/dockerfile/grpc_build_deb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ FROM grpc/base
RUN apt-get update && apt-get install -y lintian

# Get the source from GitHub
RUN git clone git@github.com:grpc/grpc.git /var/local/git/grpc
RUN git clone https://github.com/grpc/grpc.git /var/local/git/grpc
RUN cd /var/local/git/grpc && \
git pull --recurse-submodules && \
git submodule update --init --recursive
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/grpc_cxx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ FROM grpc/base
RUN apt-get update && apt-get -y install libgflags-dev libgtest-dev

# Get the source from GitHub
RUN git clone git@github.com:grpc/grpc.git /var/local/git/grpc
RUN git clone https://github.com/grpc/grpc.git /var/local/git/grpc
RUN cd /var/local/git/grpc && \
git pull --recurse-submodules && \
git submodule update --init --recursive
Expand Down
15 changes: 0 additions & 15 deletions tools/dockerfile/grpc_go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,6 @@
# Dockerfile for gRPC Go
FROM golang:1.4

# Install SSH to that Go source can be pulled securely.
RUN apt-get update && apt-get install -y ssh

# Install a GitHub SSH service credential that gives access to the GitHub repo while it's private
#
# TODO: remove this once the repo is public
ADD .ssh .ssh
RUN chmod 600 /.ssh/github.rsa
RUN mkdir -p $HOME/.ssh && echo 'Host github.com' > $HOME/.ssh/config
RUN echo " IdentityFile /.ssh/github.rsa" >> $HOME/.ssh/config
RUN echo 'StrictHostKeyChecking no' >> $HOME/.ssh/config

# Force go get to use the GitHub ssh url instead of https, and use the SSH creds
RUN git config --global url."git@github.com:".insteadOf "https://github.com/"

# Get the source from GitHub
RUN go get google.golang.org/grpc

Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/grpc_java/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# Dockerfile for the gRPC Java dev image
FROM grpc/java_base

RUN git clone --recursive --depth 1 git@github.com:grpc/grpc-java.git /var/local/git/grpc-java
RUN git clone --recursive --depth 1 https://github.com/grpc/grpc-java.git /var/local/git/grpc-java
RUN cd /var/local/git/grpc-java/lib/netty && \
mvn -pl codec-http2 -am -DskipTests install clean
RUN cd /var/local/git/grpc-java && \
Expand Down
8 changes: 1 addition & 7 deletions tools/dockerfile/grpc_java_base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,9 @@ RUN wget -O - https://github.com/google/protobuf/archive/v3.0.0-alpha-2.tar.gz |
cd javanano && mvn install && cd .. && \
rm -r "$(pwd)"

# Install a GitHub SSH service credential that gives access to the GitHub repo while it's private
# TODO: remove this once the repo is public
COPY .ssh/github.rsa /root/.ssh/id_rsa
RUN chmod 600 /root/.ssh/id_rsa
RUN echo 'Host github.com\nStrictHostKeyChecking no' > /root/.ssh/config

# Trigger download of as many Maven and Gradle artifacts as possible. We don't build grpc-java
# because we don't want to install netty
RUN git clone --recursive --depth 1 git@github.com:grpc/grpc-java.git && \
RUN git clone --recursive --depth 1 https://github.com/grpc/grpc-java.git && \
cd grpc-java/lib/netty && \
mvn -pl codec-http2 -am -DskipTests verify && \
cd ../.. && \
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/grpc_node_base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ RUN apt-get update && apt-get install -y nodejs nodejs-legacy
RUN npm install -g node-gyp

# Get the source from GitHub, this gets the protobuf library as well
RUN git clone git@github.com:grpc/grpc.git /var/local/git/grpc
RUN git clone https://github.com/grpc/grpc.git /var/local/git/grpc
RUN cd /var/local/git/grpc && \
git pull --recurse-submodules && \
git submodule update --init --recursive
Expand Down
4 changes: 2 additions & 2 deletions tools/dockerfile/grpc_php_base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ RUN cd /var/local \

# Download the patched PHP protobuf so that PHP gRPC clients can be generated
# from proto3 schemas.
RUN git clone git@github.com:murgatroid99/Protobuf-PHP.git /var/local/git/protobuf-php
RUN git clone https://github.com/murgatroid99/Protobuf-PHP.git /var/local/git/protobuf-php

# Install ruby (via RVM) as ruby tools are dependencies for building Protobuf
# PHP extensions.
Expand All @@ -91,7 +91,7 @@ ENV PATH /usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/s
RUN rvm all do gem install ronn rake

# Get the source from GitHub, this gets the protobuf library as well
RUN git clone git@github.com:grpc/grpc.git /var/local/git/grpc
RUN git clone https://github.com/grpc/grpc.git /var/local/git/grpc
RUN cd /var/local/git/grpc && \
git pull --recurse-submodules && \
git submodule update --init --recursive
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/grpc_python_base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ RUN apt-get update && apt-get install -y \
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.0.0-alpha-1

# Get the GRPC source from GitHub
RUN git clone --recursive git@github.com:grpc/grpc.git /var/local/git/grpc
RUN git clone --recursive https://github.com/grpc/grpc.git /var/local/git/grpc
2 changes: 1 addition & 1 deletion tools/dockerfile/grpc_ruby_base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ RUN /bin/bash -l -c "echo 'rvm --default use ruby-2.1' >> ~/.bashrc"
RUN /bin/bash -l -c "gem install bundler --no-ri --no-rdoc"

# Get the source from GitHub
RUN git clone git@github.com:grpc/grpc.git /var/local/git/grpc
RUN git clone https://github.com/grpc/grpc.git /var/local/git/grpc
RUN cd /var/local/git/grpc && \
git pull --recurse-submodules && \
git submodule update --init --recursive
Expand Down

0 comments on commit 2f02bb0

Please sign in to comment.