Updates the node and ruby examples to use the debian packages
This commit is contained in:
parent
4c8eee6933
commit
5828df660b
|
|
@ -14,18 +14,22 @@ INSTALL
|
|||
```sh
|
||||
$ git clone https://github.com/grpc/grpc-common.git
|
||||
```
|
||||
- Follow the instructions in [INSTALL](https://github.com/grpc/grpc/blob/master/INSTALL) to install the gRPC C core.
|
||||
|
||||
- Download the grpc debian packages from the [latest grpc release](https://github.com/grpc/grpc/releases) and install them.
|
||||
- Later, it will possible to install them directly using `apt-get install`
|
||||
```sh
|
||||
$ wget https://github.com/grpc/grpc/releases/download/release-0_5_0/libgrpc_0.5.0_amd64.deb
|
||||
$ wget https://github.com/grpc/grpc/releases/download/release-0_5_0/libgrpc-dev_0.5.0_amd64.deb
|
||||
$ sudo dpkg -i libgrpc_0.5.0_amd64.deb libgrpc-dev_0.5.0_amd64.deb
|
||||
```
|
||||
|
||||
- Install this package's dependencies
|
||||
|
||||
```sh
|
||||
$ cd grpc-common/node
|
||||
$ npm install
|
||||
# If grpc is not found, you'll need to install it from the grpc repository
|
||||
$ git clone https://github.com/grpc/grpc.git
|
||||
$ npm install path/to/grpc/src/node
|
||||
```
|
||||
|
||||
|
||||
TRY IT!
|
||||
-------
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"name": "grpc-greeter",
|
||||
"version": "0.1.0",
|
||||
"name": "grpc-demo",
|
||||
"version": "0.5.0",
|
||||
"dependencies": {
|
||||
"async": "^0.9.0",
|
||||
"grpc": "~0.2.0",
|
||||
"grpc": "~0.5.0",
|
||||
"minimist": "^1.1.0",
|
||||
"underscore": "^1.8.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,16 +25,20 @@ INSTALL
|
|||
-------
|
||||
|
||||
- Clone this repository.
|
||||
- Follow the instructions in [INSTALL](https://github.com/grpc/grpc/blob/master/INSTALL) to install the gRPC C core.
|
||||
- *Temporary*
|
||||
- Install the full gRPC distribution from source on your local machine
|
||||
- Build gRPC Ruby as described in [installing from source](https://github.com/grpc/grpc/blob/master/src/ruby/README.md#installing-from-source)
|
||||
- update `path:` in [Gemfile](https://github.com/grpc/grpc-common/blob/master/ruby/Gemfile) to refer to src/ruby within the gRPC directory
|
||||
- N.B: these steps are necessary until the gRPC ruby gem is published
|
||||
- Use bundler to install
|
||||
|
||||
- Download the grpc debian packages from the [latest grpc release](https://github.com/grpc/grpc/releases) and install them.
|
||||
- Later, it will possible to install them directly using `apt-get install`
|
||||
```sh
|
||||
$ wget https://github.com/grpc/grpc/releases/download/release-0_5_0/libgrpc_0.5.0_amd64.deb
|
||||
$ wget https://github.com/grpc/grpc/releases/download/release-0_5_0/libgrpc-dev_0.5.0_amd64.deb
|
||||
$ sudo dpkg -i libgrpc_0.5.0_amd64.deb libgrpc-dev_0.5.0_amd64.deb
|
||||
```
|
||||
|
||||
- Use bundler to install the example package's dependencies
|
||||
```sh
|
||||
$ # from this directory
|
||||
$ gem install bundler && bundle install
|
||||
$ gem install bundler # if you don't already have bundler available
|
||||
$ bundle install
|
||||
```
|
||||
|
||||
Try it!
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
Gem::Specification.new do |s|
|
||||
s.name = 'grpc-demo'
|
||||
s.version = '0.1.0'
|
||||
s.version = '0.5.0'
|
||||
s.authors = ['gRPC Authors']
|
||||
s.email = 'temiola@google.com'
|
||||
s.homepage = 'https://github.com/grpc/grpc-common'
|
||||
|
|
@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|||
s.require_paths = ['lib']
|
||||
s.platform = Gem::Platform::RUBY
|
||||
|
||||
s.add_dependency 'grpc', '~> 0.0.1'
|
||||
s.add_dependency 'grpc', '~> 0.5.0'
|
||||
|
||||
s.add_development_dependency 'bundler', '~> 1.7'
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue