-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request grpc#870 from nicolasnoble/docker
Removing the ssh setup of the dockerfile.
- Loading branch information
Showing
10 changed files
with
9 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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."[email protected]:".insteadOf "https://github.com/" | ||
|
||
# Get the source from GitHub | ||
RUN go get google.golang.org/grpc | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters