Full Code of grpc/grpc-docker-library for AI

master 2ef4dc22614a cached
87 files
111.9 KB
29.8k tokens
24 symbols
1 requests
Download .txt
Repository: grpc/grpc-docker-library
Branch: master
Commit: 2ef4dc22614a
Files: 87
Total size: 111.9 KB

Directory structure:
gitextract_mu59nbkm/

├── .gitignore
├── 0.10/
│   ├── cxx/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── golang/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── node/
│   │   ├── Dockerfile
│   │   ├── README.md
│   │   └── onbuild/
│   │       └── Dockerfile
│   ├── php/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── python/
│   │   ├── Dockerfile
│   │   ├── README.md
│   │   └── onbuild/
│   │       └── Dockerfile
│   └── ruby/
│       ├── Dockerfile
│       ├── README.md
│       └── onbuild/
│           └── Dockerfile
├── 0.11/
│   ├── csharp/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── cxx/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── golang/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── node/
│   │   ├── Dockerfile
│   │   ├── README.md
│   │   └── onbuild/
│   │       └── Dockerfile
│   ├── php/
│   │   ├── Dockerfile
│   │   ├── README.md
│   │   ├── onbuild/
│   │   │   └── Dockerfile
│   │   └── sample_app/
│   │       ├── Dockerfile
│   │       ├── client.php
│   │       ├── composer.json
│   │       ├── helloworld.php
│   │       └── helloworld.proto
│   ├── python/
│   │   ├── Dockerfile
│   │   ├── README.md
│   │   └── onbuild/
│   │       └── Dockerfile
│   └── ruby/
│       ├── Dockerfile
│       ├── README.md
│       └── onbuild/
│           └── Dockerfile
├── 1.0/
│   ├── csharp/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── cxx/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── golang/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── node/
│   │   ├── Dockerfile
│   │   ├── README.md
│   │   └── onbuild/
│   │       └── Dockerfile
│   ├── php/
│   │   ├── Dockerfile
│   │   ├── README.md
│   │   ├── onbuild/
│   │   │   └── Dockerfile
│   │   └── sample_app/
│   │       ├── Dockerfile
│   │       ├── Helloworld/
│   │       │   └── GreeterClient.php
│   │       ├── client.php
│   │       ├── composer.json
│   │       ├── helloworld.pb.php
│   │       └── helloworld.proto
│   ├── python/
│   │   ├── Dockerfile
│   │   ├── README.md
│   │   ├── onbuild/
│   │   │   └── Dockerfile
│   │   └── slim/
│   │       └── Dockerfile
│   └── ruby/
│       ├── Dockerfile
│       ├── README.md
│       └── onbuild/
│           └── Dockerfile
├── 1.10/
│   └── cxx/
│       ├── Dockerfile
│       └── README.md
├── 1.12.0/
│   └── cxx/
│       ├── Dockerfile
│       └── README.md
├── 1.13.0/
│   └── python/
│       ├── Dockerfile
│       ├── README.md
│       ├── onbuild/
│       │   └── Dockerfile
│       └── slim/
│           └── Dockerfile
├── 1.15.0/
│   └── python/
│       ├── Dockerfile
│       ├── README.md
│       ├── alpine/
│       │   └── Dockerfile
│       ├── onbuild/
│       │   └── Dockerfile
│       └── slim/
│           └── Dockerfile
├── 1.21.0/
│   └── cxx/
│       ├── Dockerfile
│       └── README.md
├── 1.4/
│   └── python/
│       ├── Dockerfile
│       ├── README.md
│       ├── onbuild/
│       │   └── Dockerfile
│       └── slim/
│           └── Dockerfile
├── 1.8/
│   └── cxx/
│       ├── Dockerfile
│       └── README.md
├── LICENSE
└── README.md

================================================
FILE CONTENTS
================================================

================================================
FILE: .gitignore
================================================
*~
.idea
*.iml

================================================
FILE: 0.10/cxx/Dockerfile
================================================
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

FROM buildpack-deps:jessie

RUN apt-get update && apt-get install -y \
  autoconf \
  autotools-dev \
  build-essential \
  curl \
  gcc \
  git \
  libc6-dbg \
  libc6-dev \
  libgtest-dev \
  libgflags-dev \
  libtool \
  make \
  unzip && apt-get clean

ENV GRPC_RELEASE_TAG release-0_10_2

RUN git clone https://github.com/grpc/grpc.git /var/local/git/grpc
RUN cd /var/local/git/grpc && \
  git checkout tags/${GRPC_RELEASE_TAG} && \
  git submodule update --init --recursive

RUN cd /var/local/git/grpc/third_party/protobuf && \
  ./autogen.sh && \
  ./configure --prefix=/usr && \
  make -j12 && make check && make install && make clean

RUN cd /var/local/git/grpc && make install


================================================
FILE: 0.10/cxx/README.md
================================================
# gRPC C++ Docker image

This is the official docker image for the C++ installation of [grpc][].  For an
overview and usage examples, see the [grpc C++ documentation][].

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official [gRPC documentation][].

[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc C++ documentation]:http://www.grpc.io/docs/tutorials/basic/c.html


================================================
FILE: 0.10/golang/Dockerfile
================================================
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# Dockerfile for gRPC Go
FROM golang:1.4

# NOTE: for now, this docker image always builds the current HEAD version of
# gRPC.  After gRPC's beta release, the Dockerfile versions will be updated to
# build a specific version.

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


================================================
FILE: 0.10/golang/README.md
================================================
# gRPC Go Docker image
======================

This is the official docker image for grpc Go.  For an overview and usage
examples, see the grpc Go documentation.

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official gRPC documentation.


================================================
FILE: 0.10/node/Dockerfile
================================================
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

FROM node:0.12.7

RUN echo "deb http://ftp.us.debian.org/debian jessie-backports main" | tee -a /etc/apt/sources.list

ENV GRPC_VERSION 0.10.2-1~bpo8+1
ENV GRPC_NODE_VERSION 0.10.1

RUN apt-get update && apt-get install -y -q libgrpc-dev=${GRPC_VERSION}

RUN npm install -g grpc@${GRPC_NODE_VERSION}


================================================
FILE: 0.10/node/README.md
================================================
# gRPC Node.js Docker image

This is the official docker image for the Node.js library of grpc.  For an
overview and usage examples, see the grpc nodejs documentation.

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official gRPC documentation.

# How to use this image

## Create a `Dockerfile` in your gRPC Node.js app project

```dockerfile
FROM grpc/node:0.10-onbuild
# replace this with your application's default port
EXPOSE 8888
```

You can then build and run the Docker image:

```console
$ docker build -t my-grpc-nodejs-client-or-server .
$ docker run -it --rm --name my-running-app my-grpc-nodejs-client-or-server
```

## Notes

The image assumes that your application has a file named `package.json` listing
its dependencies and defining its start script

## Run a single Node.js script

For many simple, single file projects, you may find it inconvenient to write a
`complete `Dockerfile`. In such cases, you can run a Node.js script by using the
Node.js Docker image directly:

```console
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp grpc/node:0.10 node your-grpc-client-or-server.js
```


[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc nodejs documentation]:http://www.grpc.io/docs/tutorials/basic/node.html


================================================
FILE: 0.10/node/onbuild/Dockerfile
================================================
FROM grpc/node:0.10

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD COPY package.json /usr/src/app/
ONBUILD RUN npm install
ONBUILD COPY . /usr/src/app

CMD [ "npm", "start" ]


================================================
FILE: 0.10/php/Dockerfile
================================================
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

FROM php:5.5

RUN echo "deb http://ftp.us.debian.org/debian jessie-backports main" | tee -a /etc/apt/sources.list

ENV GRPC_VERSION 0.10.2-1~bpo8+1

RUN apt-get update && apt-get install -y -q php5 php5-dev phpunit php-pear libgrpc-dev=${GRPC_VERSION}

RUN pecl install grpc-alpha


================================================
FILE: 0.10/php/README.md
================================================
# gRPC PHP Docker image

This is the official docker image for the PHP library of [grpc][].  For an
overview and usage examples, see the [grpc php documentation][].

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official [gRPC documentation][].

[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc php documentation]:http://www.grpc.io/docs/tutorials/basic/php.html


================================================
FILE: 0.10/python/Dockerfile
================================================
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

FROM python:2.7.10

RUN echo "deb http://ftp.us.debian.org/debian jessie-backports main" | tee -a /etc/apt/sources.list

ENV GRPC_VERSION 0.10.2-1~bpo8+1
ENV GRPC_PYTHON_VERSION 0.10.0a0

RUN apt-get update && apt-get install -y -q libgrpc-dev=${GRPC_VERSION}

RUN pip install grpcio==${GRPC_PYTHON_VERSION}


================================================
FILE: 0.10/python/README.md
================================================
# gRPC Python Docker image

This is the official docker image for the Python facility of grpc.  For an
overview and usage examples, see the grpc python documentation.

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official gRPC documentation.


# How to use this image

## Create a `Dockerfile` in your Python app project


```dockerfile
FROM grpc/python:0.10-onbuild
CMD [ "python", "./your-daemon-or-script.py" ]
```

These images include multiple `ONBUILD` triggers, which should be all you need
to bootstrap most applications. The build will `COPY` a `requirements.txt` file,
`RUN pip install` on said file, and then copy the current directory into
`/usr/src/app`.

You can then build and run the Docker image:

```console
$ docker build -t my-grpc-python-client-or-server .
$ docker run -it --rm --name my-running-app my-grpc-python-client-or-server
```

## Run a single Python script

For many simple, single file projects, you may find it inconvenient to write a
complete `Dockerfile`. In such cases, you can run a Python script by using the
Python Docker image directly:


```console
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp grpc/python:0.10 python your-grpc-python-client-or-server.py
```

[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc python documentation]:http://www.grpc.io/docs/tutorials/basic/python.html


================================================
FILE: 0.10/python/onbuild/Dockerfile
================================================
FROM grpc/python:0.10

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD COPY requirements.txt /usr/src/app/
ONBUILD RUN pip install --no-cache-dir -r requirements.txt

ONBUILD COPY . /usr/src/app

================================================
FILE: 0.10/ruby/Dockerfile
================================================
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

FROM ruby:2.2

RUN echo "deb http://ftp.us.debian.org/debian jessie-backports main" | tee -a /etc/apt/sources.list

ENV GRPC_VERSION 0.10.2-1~bpo8+1
ENV GRPC_RUBY_VERSION 0.10.0

RUN apt-get update && apt-get install -y -q libgrpc-dev=${GRPC_VERSION}

RUN gem install grpc -v ${GRPC_RUBY_VERSION}


================================================
FILE: 0.10/ruby/README.md
================================================
# gRPC Ruby Docker image

This is the official docker image for the Ruby library of grpc.  For an
overview and usage examples, see the grpc ruby documentation.

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official gRPC documentation.

# How to use this image

## Create a `Dockerfile` in your gRPC Ruby app project

```dockerfile
FROM grpc/ruby:0.10-onbuild
CMD ["./your-client-or-server.rb"]
```

Put this file in the root of your app, next to the `Gemfile`.

This image includes multiple `ONBUILD` triggers which should be all you need to
bootstrap most gRPC Ruby applications. The build will `COPY . /usr/src/app` and
`RUN bundle install`.

You can then build and run the Ruby image:

```console
$ docker build -t my-ruby-app .
$ docker run -it --name my-running-script my-ruby-app
```

### Generate a `Gemfile.lock`

The `onbuild` tag expects a `Gemfile.lock` in your app directory. This `docker
run` will help you generate one. Run it in the root of your app, next to the
`Gemfile`:


```console
$ docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app grpc/ruby:0.10 bundle install
```

## Run a single Ruby script

For many simple, single file projects, you may find it inconvenient to write a
complete `Dockerfile`. In such cases, you can run a gRPC Ruby app by using the
gRPC Ruby Docker image directly:


```console
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp grpc/ruby:0.10 ruby your-grpc-client-or-server.rb
```


[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc ruby documentation]:http://www.grpc.io/docs/tutorials/basic/ruby.html


================================================
FILE: 0.10/ruby/onbuild/Dockerfile
================================================
FROM grpc/ruby:0.10

# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD COPY Gemfile /usr/src/app/
ONBUILD COPY Gemfile.lock /usr/src/app/
ONBUILD RUN bundle install

ONBUILD COPY . /usr/src/app


================================================
FILE: 0.11/csharp/Dockerfile
================================================
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

FROM debian:jessie

RUN echo "deb http://ftp.us.debian.org/debian jessie-backports main" | tee -a /etc/apt/sources.list

# Install latest version of mono based on instructions from
# http://www.mono-project.com/docs/getting-started/install/linux/
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN echo "deb http://download.mono-project.com/repo/debian wheezy main" | tee /etc/apt/sources.list.d/mono-xamarin.list
RUN echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" | tee -a /etc/apt/sources.list.d/mono-xamarin.list
RUN echo "deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" | tee -a /etc/apt/sources.list.d/mono-xamarin.list
RUN echo "deb http://download.mono-project.com/repo/debian wheezy-libtiff-compat main" | tee -a /etc/apt/sources.list.d/mono-xamarin.list
RUN apt-get update && apt-get install -y mono-complete mono-devel nuget && apt-get clean

# Install trusted root certificates needed to restore NuGet packages
RUN mozroots --import --sync

ENV GRPC_RELEASE_TAG=0_11_0
ENV GRPC_VERSION=0.11.0.0-1
ENV GRPC_VERSION_BACKPORTS=${GRPC_VERSION}~bpo8+2

RUN apt-get update && apt-get install -y -q wget libgrpc0=${GRPC_VERSION_BACKPORTS} && apt-get clean

# Download and install C# native extension
RUN cd /root && wget https://github.com/grpc/grpc/releases/download/release-${GRPC_RELEASE_TAG}/libgrpc-csharp-ext0_${GRPC_VERSION}_amd64.deb \
    && dpkg -i libgrpc-csharp-ext0_${GRPC_VERSION}_amd64.deb

# Define the default command.
CMD ["bash"]



================================================
FILE: 0.11/csharp/README.md
================================================
# gRPC C# Docker image

This is the official docker image for the C# installation of gRPC. 



================================================
FILE: 0.11/cxx/Dockerfile
================================================
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

FROM buildpack-deps:jessie

RUN apt-get update && apt-get install -y \
  autoconf \
  autotools-dev \
  build-essential \
  curl \
  gcc \
  git \
  libc6-dbg \
  libc6-dev \
  libgtest-dev \
  libgflags-dev \
  libtool \
  make \
  unzip && apt-get clean

ENV GRPC_RELEASE_TAG release-0_11_0

RUN git clone https://github.com/grpc/grpc.git /var/local/git/grpc
RUN cd /var/local/git/grpc && \
  git checkout tags/${GRPC_RELEASE_TAG} && \
  git submodule update --init --recursive

RUN cd /var/local/git/grpc/third_party/protobuf && \
  ./autogen.sh && \
  ./configure --prefix=/usr && \
  make -j12 && make check && make install && make clean

RUN cd /var/local/git/grpc && make install


================================================
FILE: 0.11/cxx/README.md
================================================
# gRPC C++ Docker image

This is the official docker image for the C++ installation of [grpc][].  For an
overview and usage examples, see the [grpc C++ documentation][].

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official [gRPC documentation][].

[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc C++ documentation]:http://www.grpc.io/docs/tutorials/basic/c.html


================================================
FILE: 0.11/golang/Dockerfile
================================================
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# Dockerfile for gRPC Go
FROM golang:1.5

# install protobuf from source
RUN apt-get update && \
    apt-get -y install git unzip build-essential autoconf libtool
RUN git clone https://github.com/google/protobuf.git && \
    cd protobuf && \
    ./autogen.sh && \
    ./configure && \
    make && \
    make install && \
    ldconfig && \
    make clean && \
    cd .. && \
    rm -r protobuf

# NOTE: for now, this docker image always builds the current HEAD version of
# gRPC.  After gRPC's beta release, the Dockerfile versions will be updated to
# build a specific version.

# Get the source from GitHub
RUN go get google.golang.org/grpc
# Install protoc-gen-go
RUN go get github.com/golang/protobuf/protoc-gen-go


================================================
FILE: 0.11/golang/README.md
================================================
# gRPC Go Docker image
======================

This is the official docker image for grpc Go.  For an overview and usage
examples, see the grpc Go documentation.

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official gRPC documentation.


================================================
FILE: 0.11/node/Dockerfile
================================================
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

FROM node:0.12.7

RUN echo "deb http://ftp.us.debian.org/debian jessie-backports main" | tee -a /etc/apt/sources.list

ENV GRPC_VERSION 0.11.0.0-1~bpo8+2
ENV GRPC_NODE_VERSION 0.11.0

RUN apt-get update && apt-get install -y -q libgrpc-dev=${GRPC_VERSION}

RUN npm install -g grpc@${GRPC_NODE_VERSION}


================================================
FILE: 0.11/node/README.md
================================================
# gRPC Node.js Docker image

This is the official docker image for the Node.js library of grpc.  For an
overview and usage examples, see the grpc nodejs documentation.

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official gRPC documentation.

# How to use this image

## Create a `Dockerfile` in your gRPC Node.js app project

```dockerfile
FROM grpc/node:0.11-onbuild
# replace this with your application's default port
EXPOSE 8888
```

You can then build and run the Docker image:

```console
$ docker build -t my-grpc-nodejs-client-or-server .
$ docker run -it --rm --name my-running-app my-grpc-nodejs-client-or-server
```

## Notes

The image assumes that your application has a file named `package.json` listing
its dependencies and defining its start script

## Run a single Node.js script

For many simple, single file projects, you may find it inconvenient to write a
`complete `Dockerfile`. In such cases, you can run a Node.js script by using the
Node.js Docker image directly:

```console
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp grpc/node:0.11 node your-grpc-client-or-server.js
```


[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc nodejs documentation]:http://www.grpc.io/docs/tutorials/basic/node.html


================================================
FILE: 0.11/node/onbuild/Dockerfile
================================================
FROM grpc/node:0.11

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD COPY package.json /usr/src/app/
ONBUILD RUN npm install
ONBUILD COPY . /usr/src/app

CMD [ "npm", "start" ]


================================================
FILE: 0.11/php/Dockerfile
================================================
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
FROM debian:jessie

RUN apt-get update && apt-get install -y -q apache2 git php5 php5-dev \
  phpunit php-pear

RUN cd /usr/local/bin && curl -sS https://getcomposer.org/installer | php
RUN cd /usr/local/bin && mv composer.phar composer

ENV GRPC_VERSION 0.11.1-1~bpo8+1
RUN echo "deb http://ftp.us.debian.org/debian jessie-backports main" | \
  tee -a /etc/apt/sources.list
RUN apt-get update && apt-get install -y -q libgrpc-dev=${GRPC_VERSION}

RUN pecl install grpc-beta
RUN echo "extension=grpc.so" > /etc/php5/apache2/conf.d/30-grpc.ini


================================================
FILE: 0.11/php/README.md
================================================
# gRPC PHP Docker image

This is the official docker image for the PHP library of [gRPC][].  For an
overview and usage examples, see the [gRPC PHP documentation][].

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official [gRPC documentation][].

# How to use this image

Assume that you are building an app called `sample_app`

```sh
$ mkdir -p sample_app
```

You will need the following files in the [`sample_app`](./sample_app) directory


Build a `Dockerfile` for your app, based on the gRPC PHP onbuild image.

```dockerfile
FROM grpc/php:0.11-onbuild

CMD ["apache2ctl", "-DFOREGROUND"]
```

You will need a `composer.json` file, similar to this

```json
{
  "require": {
    "php": ">=5.5.0",
    "grpc/grpc": "dev-release-0_11",
    "google/auth": "dev-master",
    "datto/protobuf-php": "dev-master"
  },
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/stanley-cheung/Protobuf-PHP"
    }
  ]
}
```

Assume that you have a service defined in a `helloworld.proto` file. Use
the `protoc-gen-php` tool to generate the client stub `helloworld.php` file.

```sh
$ protoc-gen-php -i sample_app/ -o sample_app/ helloworld.proto
```

Build your client app: `client.php`

```php
<?php

require 'vendor/autoload.php';
require 'helloworld.php';

$client = new helloworld\GreeterClient('localhost:50051', []);
var_dump($client);
```

Build the app's docker image

```sh
$ docker build -t grpc-php-client sample_app/
```

Run the docker image, which will start an Apache server

```sh
$ docker run -it --rm -p 9998:80 grpc-php-client
```

Use a browser to test your app: `localhost:9998/client.php`

[gRPC]:http:/grpc.io
[gRPC documentation]:http://www.grpc.io/docs/
[gRPC PHP documentation]:http://www.grpc.io/docs/tutorials/basic/php.html


================================================
FILE: 0.11/php/onbuild/Dockerfile
================================================
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
FROM grpc/php:0.11

WORKDIR /var/www/html

ONBUILD COPY composer.json /var/www/html/
ONBUILD RUN composer install

ONBUILD COPY . /var/www/html


================================================
FILE: 0.11/php/sample_app/Dockerfile
================================================
FROM grpc/php:0.11-onbuild

CMD ["apache2ctl", "-DFOREGROUND"]


================================================
FILE: 0.11/php/sample_app/client.php
================================================
<?php

require 'vendor/autoload.php';
require 'helloworld.php';

$client = new helloworld\GreeterClient('localhost:50051', []);
var_dump($client);


================================================
FILE: 0.11/php/sample_app/composer.json
================================================
{
  "require": {
    "php": ">=5.5.0",
    "grpc/grpc": "dev-release-0_11",
    "google/auth": "dev-master",
    "datto/protobuf-php": "dev-master"
  },
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/stanley-cheung/Protobuf-PHP"
    }
  ]
}


================================================
FILE: 0.11/php/sample_app/helloworld.php
================================================
<?php
// DO NOT EDIT! Generated by Protobuf-PHP protoc plugin 1.0
// Source: helloworld.proto
//   Date: 2015-10-17 02:29:58

namespace helloworld {

  class HelloRequest extends \DrSlump\Protobuf\Message {

    /**  @var string */
    public $name = null;
    

    /** @var \Closure[] */
    protected static $__extensions = array();

    public static function descriptor()
    {
      $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'helloworld.HelloRequest');

      // OPTIONAL STRING name = 1
      $f = new \DrSlump\Protobuf\Field();
      $f->number    = 1;
      $f->name      = "name";
      $f->type      = \DrSlump\Protobuf::TYPE_STRING;
      $f->rule      = \DrSlump\Protobuf::RULE_OPTIONAL;
      $descriptor->addField($f);

      foreach (self::$__extensions as $cb) {
        $descriptor->addField($cb(), true);
      }

      return $descriptor;
    }

    /**
     * Check if <name> has a value
     *
     * @return boolean
     */
    public function hasName(){
      return $this->_has(1);
    }
    
    /**
     * Clear <name> value
     *
     * @return \helloworld\HelloRequest
     */
    public function clearName(){
      return $this->_clear(1);
    }
    
    /**
     * Get <name> value
     *
     * @return string
     */
    public function getName(){
      return $this->_get(1);
    }
    
    /**
     * Set <name> value
     *
     * @param string $value
     * @return \helloworld\HelloRequest
     */
    public function setName( $value){
      return $this->_set(1, $value);
    }
  }
}

namespace helloworld {

  class HelloReply extends \DrSlump\Protobuf\Message {

    /**  @var string */
    public $message = null;
    

    /** @var \Closure[] */
    protected static $__extensions = array();

    public static function descriptor()
    {
      $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'helloworld.HelloReply');

      // OPTIONAL STRING message = 1
      $f = new \DrSlump\Protobuf\Field();
      $f->number    = 1;
      $f->name      = "message";
      $f->type      = \DrSlump\Protobuf::TYPE_STRING;
      $f->rule      = \DrSlump\Protobuf::RULE_OPTIONAL;
      $descriptor->addField($f);

      foreach (self::$__extensions as $cb) {
        $descriptor->addField($cb(), true);
      }

      return $descriptor;
    }

    /**
     * Check if <message> has a value
     *
     * @return boolean
     */
    public function hasMessage(){
      return $this->_has(1);
    }
    
    /**
     * Clear <message> value
     *
     * @return \helloworld\HelloReply
     */
    public function clearMessage(){
      return $this->_clear(1);
    }
    
    /**
     * Get <message> value
     *
     * @return string
     */
    public function getMessage(){
      return $this->_get(1);
    }
    
    /**
     * Set <message> value
     *
     * @param string $value
     * @return \helloworld\HelloReply
     */
    public function setMessage( $value){
      return $this->_set(1, $value);
    }
  }
}

namespace helloworld {

  class GreeterClient extends \Grpc\BaseStub {

    public function __construct($hostname, $opts) {
      parent::__construct($hostname, $opts);
    }
    /**
     * @param helloworld\HelloRequest $input
     */
    public function SayHello(\helloworld\HelloRequest $argument, $metadata = array(), $options = array()) {
      return $this->_simpleRequest('/helloworld.Greeter/SayHello', $argument, '\helloworld\HelloReply::deserialize', $metadata, $options);
    }
  }
}


================================================
FILE: 0.11/php/sample_app/helloworld.proto
================================================
// Copyright 2015, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
//     * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//     * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
//     * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

syntax = "proto2";

package helloworld;

// The greeting service definition.
service Greeter {
  // Sends a greeting
  rpc SayHello (HelloRequest) returns (HelloReply) {}
}

// The request message containing the user's name.
message HelloRequest {
  optional string name = 1;
}

// The response message containing the greetings
message HelloReply {
  optional string message = 1;
}


================================================
FILE: 0.11/python/Dockerfile
================================================
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

FROM python:2.7.10

RUN echo "deb http://ftp.us.debian.org/debian jessie-backports main" | tee -a /etc/apt/sources.list

ENV GRPC_VERSION 0.11.0.0-1~bpo8+2
ENV GRPC_PYTHON_VERSION 0.11.0b1

RUN apt-get update && apt-get install -y -q libgrpc-dev=${GRPC_VERSION}

RUN pip install grpcio==${GRPC_PYTHON_VERSION}


================================================
FILE: 0.11/python/README.md
================================================
# gRPC Python Docker image

This is the official docker image for the Python facility of grpc.  For an
overview and usage examples, see the grpc python documentation.

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official gRPC documentation.


# How to use this image

## Create a `Dockerfile` in your Python app project


```dockerfile
FROM grpc/python:0.11-onbuild
CMD [ "python", "./your-daemon-or-script.py" ]
```

These images include multiple `ONBUILD` triggers, which should be all you need
to bootstrap most applications. The build will `COPY` a `requirements.txt` file,
`RUN pip install` on said file, and then copy the current directory into
`/usr/src/app`.

You can then build and run the Docker image:

```console
$ docker build -t my-grpc-python-client-or-server .
$ docker run -it --rm --name my-running-app my-grpc-python-client-or-server
```

## Run a single Python script

For many simple, single file projects, you may find it inconvenient to write a
complete `Dockerfile`. In such cases, you can run a Python script by using the
Python Docker image directly:


```console
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp grpc/python:0.11 python your-grpc-python-client-or-server.py
```

[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc python documentation]:http://www.grpc.io/docs/tutorials/basic/python.html


================================================
FILE: 0.11/python/onbuild/Dockerfile
================================================
FROM grpc/python:0.11

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD COPY requirements.txt /usr/src/app/
ONBUILD RUN pip install --no-cache-dir -r requirements.txt

ONBUILD COPY . /usr/src/app


================================================
FILE: 0.11/ruby/Dockerfile
================================================
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

FROM ruby:2.2

RUN echo "deb http://ftp.us.debian.org/debian jessie-backports main" | tee -a /etc/apt/sources.list

ENV GRPC_VERSION 0.11.0.0-1~bpo8+2
ENV GRPC_RUBY_VERSION 0.11.0

RUN apt-get update && apt-get install -y -q libgrpc-dev=${GRPC_VERSION}

RUN gem install grpc -v ${GRPC_RUBY_VERSION}


================================================
FILE: 0.11/ruby/README.md
================================================
# gRPC Ruby Docker image

This is the official docker image for the Ruby library of grpc.  For an
overview and usage examples, see the grpc ruby documentation.

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official gRPC documentation.

# How to use this image

## Create a `Dockerfile` in your gRPC Ruby app project

```dockerfile
FROM grpc/ruby:0.11-onbuild
CMD ["./your-client-or-server.rb"]
```

Put this file in the root of your app, next to the `Gemfile`.

This image includes multiple `ONBUILD` triggers which should be all you need to
bootstrap most gRPC Ruby applications. The build will `COPY . /usr/src/app` and
`RUN bundle install`.

You can then build and run the Ruby image:

```console
$ docker build -t my-ruby-app .
$ docker run -it --name my-running-script my-ruby-app
```

### Generate a `Gemfile.lock`

The `onbuild` tag expects a `Gemfile.lock` in your app directory. This `docker
run` will help you generate one. Run it in the root of your app, next to the
`Gemfile`:


```console
$ docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app grpc/ruby:0.11 bundle install
```

## Run a single Ruby script

For many simple, single file projects, you may find it inconvenient to write a
complete `Dockerfile`. In such cases, you can run a gRPC Ruby app by using the
gRPC Ruby Docker image directly:


```console
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp grpc/ruby:0.11 ruby your-grpc-client-or-server.rb
```


[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc ruby documentation]:http://www.grpc.io/docs/tutorials/basic/ruby.html


================================================
FILE: 0.11/ruby/onbuild/Dockerfile
================================================
FROM grpc/ruby:0.11

# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD COPY Gemfile /usr/src/app/
ONBUILD COPY Gemfile.lock /usr/src/app/
ONBUILD RUN bundle install

ONBUILD COPY . /usr/src/app


================================================
FILE: 1.0/csharp/Dockerfile
================================================
# Copyright 2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

FROM mono:4

ENV GRPC_CSHARP_VERSION 1.0.0

# update NuGet and install the tools
RUN nuget update -self
RUN cd /opt && nuget install Grpc.Tools -Version ${GRPC_CSHARP_VERSION} && chmod +x /opt/Grpc.Tools.${GRPC_CSHARP_VERSION}/tools/linux_x64/*
ENV PATH="/opt/Grpc.Tools.${GRPC_CSHARP_VERSION}/tools/linux_x64/:${PATH}"


================================================
FILE: 1.0/csharp/README.md
================================================
# gRPC C# Docker image

This is the official docker image for the C# installation of gRPC. 



================================================
FILE: 1.0/cxx/Dockerfile
================================================
# Copyright 2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

FROM debian:jessie

RUN apt-get update && apt-get install -y \
  build-essential autoconf libtool \
  git \
  pkg-config \
  && apt-get clean

ENV GRPC_RELEASE_TAG v1.0.0

RUN git clone -b ${GRPC_RELEASE_TAG} https://github.com/grpc/grpc /var/local/git/grpc

# install grpc
RUN cd /var/local/git/grpc && \
    git submodule update --init && \
    make && \
    make install && make clean

#install protoc
RUN cd /var/local/git/grpc/third_party/protobuf && \
    make && make install && make clean


================================================
FILE: 1.0/cxx/README.md
================================================
# gRPC C++ Docker image

This is the official docker image for the C++ installation of [gRPC][].  For an
overview and usage examples, see the [gRPC C++ documentation][].

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official [gRPC documentation][].

[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc C++ documentation]:http://www.grpc.io/docs/tutorials/basic/c.html


================================================
FILE: 1.0/golang/Dockerfile
================================================
# Copyright 2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# Dockerfile for gRPC Go
FROM golang:1.10

RUN apt-get update && apt-get -y install unzip && apt-get clean

# install protobuf
ENV PB_VER 3.6.0
ENV PB_URL https://github.com/google/protobuf/releases/download/v${PB_VER}/protoc-${PB_VER}-linux-x86_64.zip
RUN mkdir -p /tmp/protoc && \
    curl -L ${PB_URL} > /tmp/protoc/protoc.zip && \
    cd /tmp/protoc && \
    unzip protoc.zip && \
    cp /tmp/protoc/bin/protoc /usr/local/bin && \
    cp -R /tmp/protoc/include/* /usr/local/include && \
    chmod go+rx /usr/local/bin/protoc && \
    cd /tmp && \
    rm -r /tmp/protoc

# Get the source from GitHub
RUN mkdir -p /tmp/grpc-go && \
    curl -L https://github.com/grpc/grpc-go/archive/v1.0.0.zip > /tmp/grpc-go/grpc-go.zip && \
    cd /tmp/grpc-go && \
    unzip grpc-go.zip && \
    mkdir -p /go/src/google.golang.org/grpc/ && \
    cp -r /tmp/grpc-go/grpc-go-1.0.0/* /go/src/google.golang.org/grpc/

# Install protoc-gen-go
RUN mkdir -p /tmp/protobuf && \
    curl -L https://github.com/golang/protobuf/archive/v1.1.0.zip > /tmp/protobuf/protobuf.zip && \
    cd /tmp/protobuf && \
    unzip protobuf.zip && \
    mkdir -p /go/src/github.com/golang/protobuf/ && \
    cp -r /tmp/protobuf/protobuf-1.1.0/* /go/src/github.com/golang/protobuf/ && \
    go install github.com/golang/protobuf/protoc-gen-go


================================================
FILE: 1.0/golang/README.md
================================================
# gRPC Go Docker image
======================

This is the official docker image for gRPC Go.  For an overview and usage
examples, see the gRPC Go documentation.

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official gRPC documentation.


================================================
FILE: 1.0/node/Dockerfile
================================================
# Copyright 2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

FROM node:6.6
ENV GRPC_NODE_VERSION 1.0.0
RUN npm install -g grpc@${GRPC_NODE_VERSION} grpc-tools@${GRPC_NODE_VERSION}


================================================
FILE: 1.0/node/README.md
================================================
# gRPC Node.js Docker image

This is the official docker image for the Node.js library of gRPC.  For an
overview and usage examples, see the gRPC Node.js documentation.

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official gRPC documentation.

# How to use this image

## Create a `Dockerfile` in your gRPC Node.js app project

```dockerfile
FROM grpc/node:1.0-onbuild
# replace this with your application's default port
EXPOSE 8888
```

You can then build and run the Docker image:

```console
$ docker build -t my-grpc-nodejs-client-or-server .
$ docker run -it --rm --name my-running-app my-grpc-nodejs-client-or-server
```

## Notes

The image assumes that your application has a file named `package.json` listing
its dependencies and defining its start script

## Run a single Node.js script

For many simple, single file projects, you may find it inconvenient to write a
`complete `Dockerfile`. In such cases, you can run a Node.js script by using the
Node.js Docker image directly:

```console
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp grpc/node:0.11 node your-grpc-client-or-server.js
```


[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc nodejs documentation]:http://www.grpc.io/docs/tutorials/basic/node.html


================================================
FILE: 1.0/node/onbuild/Dockerfile
================================================
FROM grpc/node:1.0

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD COPY package.json /usr/src/app/
ONBUILD RUN npm install
ONBUILD COPY . /usr/src/app

CMD [ "npm", "start" ]


================================================
FILE: 1.0/php/Dockerfile
================================================
# Copyright 2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
FROM php:7-apache

RUN apt-get update && apt-get install -y -q git rake ruby-ronn zlib1g-dev && apt-get clean

# install composer
RUN cd /usr/local/bin && curl -sS https://getcomposer.org/installer | php
RUN cd /usr/local/bin && mv composer.phar composer

RUN pecl install grpc

#install protoc
RUN mkdir -p /tmp/protoc && \
    curl -L https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip > /tmp/protoc/protoc.zip && \
    cd /tmp/protoc && \
    unzip protoc.zip && \
    cp /tmp/protoc/bin/protoc /usr/local/bin && \
    cd /tmp && \
    rm -r /tmp/protoc && \
    docker-php-ext-enable grpc


================================================
FILE: 1.0/php/README.md
================================================
# gRPC PHP Docker image

This is the official docker image for the PHP library of [gRPC][].  For an
overview and usage examples, see the [gRPC PHP documentation][].

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official [gRPC documentation][].

# How to use this image

Assume that you are building an app called `sample_app`

```sh
$ mkdir -p sample_app
```

You will need the following files in the [`sample_app`](./sample_app) directory


Build a `Dockerfile` for your app, based on the gRPC PHP onbuild image.

```dockerfile
FROM grpc/php:1.0-onbuild

CMD ["apache2ctl", "-DFOREGROUND"]
```

You will need a `composer.json` file, similar to this

```json
{
  "name": "grpc/grpc-demo",
  "description": "gRPC example for PHP",
  "require": {
    "grpc/grpc": "v1.0.0"
  }
}
```

Assume that you have a service defined in a `helloworld.proto` file. Use
the `protoc-gen-php` tool to generate the client stub `helloworld.php` file.

```sh
$ protoc-gen-php -i sample_app/ -o sample_app/ helloworld.proto
```

Build your client app: `client.php`

```php
<?php

require 'vendor/autoload.php';
require 'helloworld.php';

$client = new helloworld\GreeterClient('localhost:50051', []);
var_dump($client);
```

Build the app's docker image

```sh
$ docker build -t grpc-php-client sample_app/
```

Run the docker image, which will start an Apache server

```sh
$ docker run -it --rm -p 9998:80 grpc-php-client
```

Use a browser to test your app: `localhost:9998/client.php`

[gRPC]:http:/grpc.io
[gRPC documentation]:http://www.grpc.io/docs/
[gRPC PHP documentation]:http://www.grpc.io/docs/tutorials/basic/php.html


================================================
FILE: 1.0/php/onbuild/Dockerfile
================================================
# Copyright 2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
FROM grpc/php:1.0

WORKDIR /var/www/html

ONBUILD COPY composer.json /var/www/html/
ONBUILD RUN composer install

ONBUILD COPY . /var/www/html


================================================
FILE: 1.0/php/sample_app/Dockerfile
================================================
FROM grpc/php:1.0-onbuild

CMD ["apache2ctl", "-DFOREGROUND"]


================================================
FILE: 1.0/php/sample_app/Helloworld/GreeterClient.php
================================================
<?php
// GENERATED CODE -- DO NOT EDIT!

// Original file comments:
// Copyright 2016, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
//     * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//     * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
//     * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
namespace Helloworld {

  // The greeting service definition.
  class GreeterClient extends \Grpc\BaseStub {

    /**
     * @param string $hostname hostname
     * @param array $opts channel options
     * @param \Grpc\Channel $channel (optional) re-use channel object
     */
    public function __construct($hostname, $opts, $channel = null) {
      parent::__construct($hostname, $opts, $channel);
    }

    /**
     * Sends a greeting
     * @param \Helloworld\HelloRequest $argument input argument
     * @param array $metadata metadata
     * @param array $options call options
     */
    public function SayHello(\Helloworld\HelloRequest $argument,
      $metadata = [], $options = []) {
      return $this->_simpleRequest('/helloworld.Greeter/SayHello',
      $argument,
      ['\Helloworld\HelloReply', 'decode'],
      $metadata, $options);
    }

  }

}


================================================
FILE: 1.0/php/sample_app/client.php
================================================
<?php

require 'vendor/autoload.php';
require 'Helloworld/GreeterClient.php';
require 'helloworld.pb.php';


$client = new \Helloworld\GreeterClient('localhost:50051', [
	'credentials' => Grpc\ChannelCredentials::createInsecure(),
]);

$req = new \Helloworld\HelloRequest();
$req->setName('gRPC World');

$resp = $client->SayHello($req);
list($resp, $status) = $client->SayHello($req)->wait();

var_dump($resp->getMessage(), $status);


================================================
FILE: 1.0/php/sample_app/composer.json
================================================
{
  "name": "grpc/grpc-demo",
  "description": "gRPC example for PHP",
  "require": {
    "php": ">=5.5.0",
    "grpc/grpc": "v1.2.0"
  }
}


================================================
FILE: 1.0/php/sample_app/helloworld.pb.php
================================================
<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: helloworld.proto

namespace Helloworld;

use Google\Protobuf\Internal\DescriptorPool;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

class HelloRequest extends \Google\Protobuf\Internal\Message
{
    private $name = '';

    public function getName()
    {
        return $this->name;
    }

    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;
    }

}

class HelloReply extends \Google\Protobuf\Internal\Message
{
    private $message = '';

    public function getMessage()
    {
        return $this->message;
    }

    public function setMessage($var)
    {
        GPBUtil::checkString($var, True);
        $this->message = $var;
    }

}

$pool = DescriptorPool::getGeneratedPool();

$pool->internalAddGeneratedFile(hex2bin(
    "0aae010a1068656c6c6f776f726c642e70726f746f120a68656c6c6f776f" .
    "726c64221c0a0c48656c6c6f52657175657374120c0a046e616d65180120" .
    "012809221d0a0a48656c6c6f5265706c79120f0a076d6573736167651801" .
    "2001280932490a0747726565746572123e0a0853617948656c6c6f12182e" .
    "68656c6c6f776f726c642e48656c6c6f526571756573741a162e68656c6c" .
    "6f776f726c642e48656c6c6f5265706c792200620670726f746f33"
));



================================================
FILE: 1.0/php/sample_app/helloworld.proto
================================================
// Copyright 2016, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
//     * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//     * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
//     * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

syntax = "proto3";

package helloworld;

// The greeting service definition.
service Greeter {
  // Sends a greeting
  rpc SayHello (HelloRequest) returns (HelloReply) {}
}

// The request message containing the user's name.
message HelloRequest {
  string name = 1;
}

// The response message containing the greetings
message HelloReply {
  string message = 1;
}


================================================
FILE: 1.0/python/Dockerfile
================================================
# Copyright 2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

FROM python:2.7

ENV GRPC_PYTHON_VERSION 1.0.0
RUN python -m pip install --upgrade pip
RUN pip install grpcio==${GRPC_PYTHON_VERSION} grpcio-tools==${GRPC_PYTHON_VERSION}


================================================
FILE: 1.0/python/README.md
================================================
# gRPC Python Docker image

This is the official docker image for the Python facility of gRPC.  For an
overview and usage examples, see the gRPC Python documentation.

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official gRPC documentation.


# How to use this image

## Create a `Dockerfile` in your Python app project


```dockerfile
FROM grpc/python:1.0-onbuild
CMD [ "python", "./your-daemon-or-script.py" ]
```

These images include multiple `ONBUILD` triggers, which should be all you need
to bootstrap most applications. The build will `COPY` a `requirements.txt` file,
`RUN pip install` on said file, and then copy the current directory into
`/usr/src/app`.

You can then build and run the Docker image:

```console
$ docker build -t my-grpc-python-client-or-server .
$ docker run -it --rm --name my-running-app my-grpc-python-client-or-server
```

## Run a single Python script

For many simple, single file projects, you may find it inconvenient to write a
complete `Dockerfile`. In such cases, you can run a Python script by using the
Python Docker image directly:


```console
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp grpc/python:0.11 python your-grpc-python-client-or-server.py
```

[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc python documentation]:http://www.grpc.io/docs/tutorials/basic/python.html


================================================
FILE: 1.0/python/onbuild/Dockerfile
================================================
FROM grpc/python:1.0

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD COPY requirements.txt /usr/src/app/
ONBUILD RUN pip install --no-cache-dir -r requirements.txt

ONBUILD COPY . /usr/src/app


================================================
FILE: 1.0/python/slim/Dockerfile
================================================
# Copyright 2018 The gRPC Authors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

FROM python:2.7-slim

ENV GRPC_PYTHON_VERSION 1.0.0
RUN python -m pip install --upgrade pip
RUN pip install grpcio==${GRPC_PYTHON_VERSION} grpcio-tools==${GRPC_PYTHON_VERSION}


================================================
FILE: 1.0/ruby/Dockerfile
================================================
# Copyright 2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

FROM ruby:2

ENV GRPC_VERSION 1.0.0
RUN gem install grpc:${GRPC_VERSION} grpc-tools:${GRPC_VERSION}


================================================
FILE: 1.0/ruby/README.md
================================================
# gRPC Ruby Docker image

This is the official docker image for the Ruby library of gRPC.  For an
overview and usage examples, see the gRPC ruby documentation.

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official gRPC documentation.

# How to use this image

## Create a `Dockerfile` in your gRPC Ruby app project

```dockerfile
FROM grpc/ruby:1.0-onbuild
CMD ["./your-client-or-server.rb"]
```

Put this file in the root of your app, next to the `Gemfile`.

This image includes multiple `ONBUILD` triggers which should be all you need to
bootstrap most gRPC Ruby applications. The build will `COPY . /usr/src/app` and
`RUN bundle install`.

You can then build and run the Ruby image:

```console
$ docker build -t my-ruby-app .
$ docker run -it --name my-running-script my-ruby-app
```

### Generate a `Gemfile.lock`

The `onbuild` tag expects a `Gemfile.lock` in your app directory. This `docker
run` will help you generate one. Run it in the root of your app, next to the
`Gemfile`:


```console
$ docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app grpc/ruby:0.11 bundle install
```

## Run a single Ruby script

For many simple, single file projects, you may find it inconvenient to write a
complete `Dockerfile`. In such cases, you can run a gRPC Ruby app by using the
gRPC Ruby Docker image directly:


```console
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp grpc/ruby:0.11 ruby your-grpc-client-or-server.rb
```


[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc ruby documentation]:http://www.grpc.io/docs/tutorials/basic/ruby.html


================================================
FILE: 1.0/ruby/onbuild/Dockerfile
================================================
FROM grpc/ruby:1.0

# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD COPY Gemfile /usr/src/app/
ONBUILD COPY Gemfile.lock /usr/src/app/
ONBUILD RUN bundle install

ONBUILD COPY . /usr/src/app


================================================
FILE: 1.10/cxx/Dockerfile
================================================
# Copyright 2017 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM debian:stretch

RUN apt-get update && apt-get install -y \
  build-essential autoconf git pkg-config \
  automake libtool curl make g++ unzip \
  && apt-get clean

# install protobuf first, then grpc
ENV GRPC_RELEASE_TAG v1.10.x
RUN git clone -b ${GRPC_RELEASE_TAG} https://github.com/grpc/grpc /var/local/git/grpc && \
		cd /var/local/git/grpc && \
    git submodule update --init && \
    echo "--- installing protobuf ---" && \
    cd third_party/protobuf && \
    ./autogen.sh && ./configure --enable-shared && \
    make -j$(nproc) && make -j$(nproc) check && make install && make clean && ldconfig && \
    echo "--- installing grpc ---" && \
    cd /var/local/git/grpc && \
    make -j$(nproc) && make install && make clean && ldconfig


================================================
FILE: 1.10/cxx/README.md
================================================
# gRPC C++ Docker image

This is the official docker image for the C++ installation of [gRPC][].  For an
overview and usage examples, see the [gRPC C++ documentation][].

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official [gRPC documentation][].

[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc C++ documentation]:http://www.grpc.io/docs/tutorials/basic/c.html


================================================
FILE: 1.12.0/cxx/Dockerfile
================================================
# Copyright 2018 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM debian:stretch

RUN apt-get update && apt-get install -y \
  build-essential autoconf libtool git pkg-config curl \
  automake libtool curl make g++ unzip \
  && apt-get clean

# install protobuf first, then grpc
ENV GRPC_RELEASE_TAG v1.12.x
RUN git clone -b ${GRPC_RELEASE_TAG} https://github.com/grpc/grpc /var/local/git/grpc && \
		cd /var/local/git/grpc && \
    git submodule update --init && \
    echo "--- installing protobuf ---" && \
    cd third_party/protobuf && \
    ./autogen.sh && ./configure --enable-shared && \
    make -j$(nproc) && make -j$(nproc) check && make install && make clean && ldconfig && \
    echo "--- installing grpc ---" && \
    cd /var/local/git/grpc && \
    make -j$(nproc) && make install && make clean && ldconfig


================================================
FILE: 1.12.0/cxx/README.md
================================================
# gRPC C++ Docker image

This is the official docker image for the C++ installation of [gRPC][].  For an
overview and usage examples, see the [gRPC C++ documentation][].

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official [gRPC documentation][].

[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc C++ documentation]:http://www.grpc.io/docs/tutorials/basic/c.html


================================================
FILE: 1.13.0/python/Dockerfile
================================================
# Copyright 2018 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM python:3.7

ENV GRPC_PYTHON_VERSION 1.13.0
RUN python -m pip install --upgrade pip
RUN pip install grpcio==${GRPC_PYTHON_VERSION} grpcio-tools==${GRPC_PYTHON_VERSION} grpcio-reflection==${GRPC_PYTHON_VERSION} grpcio-health-checking==${GRPC_PYTHON_VERSION} grpcio-testing==${GRPC_PYTHON_VERSION}


================================================
FILE: 1.13.0/python/README.md
================================================
# gRPC Python Docker image

This is the official docker image for the Python facility of [gRPC][grpc].
For an overview and usage examples, see the 
[gRPC Python documentation][grpc python documentation].

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official [gRPC][grpc documentation] documentation.


# How to use this image

## Create a `Dockerfile` in your Python app project


```dockerfile
FROM grpc/python:1.13-onbuild
CMD [ "python", "./your-daemon-or-script.py" ]
```

These images include multiple `ONBUILD` triggers, which should be all you need
to bootstrap most applications. The build will `COPY` a `requirements.txt` file,
`RUN pip install` on said file, and then copy the current directory into
`/usr/src/app`.

You can then build and run the Docker image:

```console
$ docker build -t my-grpc-python-client-or-server .
$ docker run -it --rm --name my-running-app my-grpc-python-client-or-server
```

## Run a single Python script

For many simple, single file projects, you may find it inconvenient to write a
complete `Dockerfile`. In such cases, you can run a Python script by using the
Python Docker image directly:


```console
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp grpc/python:1.13 python your-grpc-python-client-or-server.py
```

[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc python documentation]:http://www.grpc.io/docs/tutorials/basic/python.html


================================================
FILE: 1.13.0/python/onbuild/Dockerfile
================================================
# Copyright 2018 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM grpc/python:1.13

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD COPY requirements.txt /usr/src/app/
ONBUILD RUN pip install --no-cache-dir -r requirements.txt

ONBUILD COPY . /usr/src/app


================================================
FILE: 1.13.0/python/slim/Dockerfile
================================================
# Copyright 2018 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM python:3.7-slim

ENV GRPC_PYTHON_VERSION 1.13.0
RUN python -m pip install --upgrade pip
RUN pip install grpcio==${GRPC_PYTHON_VERSION} grpcio-tools==${GRPC_PYTHON_VERSION} grpcio-reflection==${GRPC_PYTHON_VERSION} grpcio-health-checking==${GRPC_PYTHON_VERSION} grpcio-testing==${GRPC_PYTHON_VERSION}


================================================
FILE: 1.15.0/python/Dockerfile
================================================
# Copyright 2018 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM python:3.7

ENV GRPC_PYTHON_VERSION 1.15.0
RUN python -m pip install --upgrade pip
RUN pip install grpcio==${GRPC_PYTHON_VERSION} grpcio-tools==${GRPC_PYTHON_VERSION} grpcio-reflection==${GRPC_PYTHON_VERSION} grpcio-health-checking==${GRPC_PYTHON_VERSION} grpcio-testing==${GRPC_PYTHON_VERSION}


================================================
FILE: 1.15.0/python/README.md
================================================
# gRPC Python Docker image

This is the official docker image for the Python facility of [gRPC][grpc].
For an overview and usage examples, see the 
[gRPC Python documentation][grpc python documentation].

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official [gRPC][grpc documentation] documentation.


# How to use this image

## Create a `Dockerfile` in your Python app project


```dockerfile
FROM grpc/python:1.15-onbuild
CMD [ "python", "./your-daemon-or-script.py" ]
```

These images include multiple `ONBUILD` triggers, which should be all you need
to bootstrap most applications. The build will `COPY` a `requirements.txt` file,
`RUN pip install` on said file, and then copy the current directory into
`/usr/src/app`.

You can then build and run the Docker image:

```console
$ docker build -t my-grpc-python-client-or-server .
$ docker run -it --rm --name my-running-app my-grpc-python-client-or-server
```

## Run a single Python script

For many simple, single file projects, you may find it inconvenient to write a
complete `Dockerfile`. In such cases, you can run a Python script by using the
Python Docker image directly:


```console
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp grpc/python:1.15 python your-grpc-python-client-or-server.py
```

[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc python documentation]:http://www.grpc.io/docs/tutorials/basic/python.html


================================================
FILE: 1.15.0/python/alpine/Dockerfile
================================================
# Copyright 2018 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM python:3.7-alpine as base

FROM base as builder
RUN apk add --update --no-cache \
    gcc \
    linux-headers \
    make \
    musl-dev \
    python-dev \
    g++
ENV GRPC_PYTHON_VERSION 1.15.0
RUN python -m pip install --upgrade pip
RUN pip install --install-option="--prefix=/install" grpcio==${GRPC_PYTHON_VERSION} grpcio-tools==${GRPC_PYTHON_VERSION} grpcio-reflection==${GRPC_PYTHON_VERSION} grpcio-health-checking==${GRPC_PYTHON_VERSION} grpcio-testing==${GRPC_PYTHON_VERSION}

FROM base
ENV GRPC_PYTHON_VERSION 1.15.0
COPY --from=builder /install /usr/local

================================================
FILE: 1.15.0/python/onbuild/Dockerfile
================================================
# Copyright 2018 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM grpc/python:1.15

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD COPY requirements.txt /usr/src/app/
ONBUILD RUN pip install --no-cache-dir -r requirements.txt

ONBUILD COPY . /usr/src/app


================================================
FILE: 1.15.0/python/slim/Dockerfile
================================================
# Copyright 2018 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM python:3.7-slim

ENV GRPC_PYTHON_VERSION 1.15.0
RUN python -m pip install --upgrade pip
RUN pip install grpcio==${GRPC_PYTHON_VERSION} grpcio-tools==${GRPC_PYTHON_VERSION} grpcio-reflection==${GRPC_PYTHON_VERSION} grpcio-health-checking==${GRPC_PYTHON_VERSION} grpcio-testing==${GRPC_PYTHON_VERSION}


================================================
FILE: 1.21.0/cxx/Dockerfile
================================================
# Copyright 2019 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM debian:stretch

RUN apt-get update && apt-get install -y \
  build-essential autoconf libtool git pkg-config curl \
  automake libtool curl make g++ unzip \
  && apt-get clean

# install protobuf first, then grpc
ENV GRPC_RELEASE_TAG v1.21.x
RUN git clone -b ${GRPC_RELEASE_TAG} https://github.com/grpc/grpc /var/local/git/grpc && \
    cd /var/local/git/grpc && \
    git submodule update --init && \
    echo "--- installing protobuf ---" && \
    cd third_party/protobuf && \
    git submodule update --init && \
    ./autogen.sh && ./configure --enable-shared && \
    make -j$(nproc) && make -j$(nproc) check && make install && make clean && ldconfig && \
    echo "--- installing grpc ---" && \
    cd /var/local/git/grpc && \
    make -j$(nproc) && make install && make clean && ldconfig && \
    rm -rf /var/local/git/grpc


================================================
FILE: 1.21.0/cxx/README.md
================================================
# gRPC C++ Docker image

This is the official docker image for the C++ installation of [gRPC][].  For an
overview and usage examples, see the [gRPC C++ documentation][].

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official [gRPC documentation][].

[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc C++ documentation]:http://www.grpc.io/docs/tutorials/basic/c.html


================================================
FILE: 1.4/python/Dockerfile
================================================
# Copyright 2018 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM python:3.6

ENV GRPC_PYTHON_VERSION 1.4.0
RUN python -m pip install --upgrade pip
RUN pip install grpcio==${GRPC_PYTHON_VERSION} grpcio-tools==${GRPC_PYTHON_VERSION}


================================================
FILE: 1.4/python/README.md
================================================
# gRPC Python Docker image

This is the official docker image for the Python facility of [gRPC][grpc].
For an overview and usage examples, see the 
[gRPC Python documentation][grpc python documentation].

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official [gRPC][grpc documentation] documentation.


# How to use this image

## Create a `Dockerfile` in your Python app project


```dockerfile
FROM grpc/python:1.4-onbuild
CMD [ "python", "./your-daemon-or-script.py" ]
```

These images include multiple `ONBUILD` triggers, which should be all you need
to bootstrap most applications. The build will `COPY` a `requirements.txt` file,
`RUN pip install` on said file, and then copy the current directory into
`/usr/src/app`.

You can then build and run the Docker image:

```console
$ docker build -t my-grpc-python-client-or-server .
$ docker run -it --rm --name my-running-app my-grpc-python-client-or-server
```

## Run a single Python script

For many simple, single file projects, you may find it inconvenient to write a
complete `Dockerfile`. In such cases, you can run a Python script by using the
Python Docker image directly:


```console
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp grpc/python:1.4 python your-grpc-python-client-or-server.py
```

[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc python documentation]:http://www.grpc.io/docs/tutorials/basic/python.html


================================================
FILE: 1.4/python/onbuild/Dockerfile
================================================
# Copyright 2017 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM grpc/python:1.4

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD COPY requirements.txt /usr/src/app/
ONBUILD RUN pip install --no-cache-dir -r requirements.txt

ONBUILD COPY . /usr/src/app


================================================
FILE: 1.4/python/slim/Dockerfile
================================================
# Copyright 2018 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM python:3.6-slim

ENV GRPC_PYTHON_VERSION 1.4.0
RUN python -m pip install --upgrade pip
RUN pip install grpcio==${GRPC_PYTHON_VERSION} grpcio-tools==${GRPC_PYTHON_VERSION}


================================================
FILE: 1.8/cxx/Dockerfile
================================================
# Copyright 2017 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM debian:stretch

RUN apt-get update && apt-get install -y \
  build-essential autoconf git pkg-config \
  automake libtool curl make g++ unzip \
  && apt-get clean

# install protobuf first, then grpc
ENV GRPC_RELEASE_TAG v1.8.x
RUN git clone -b ${GRPC_RELEASE_TAG} https://github.com/grpc/grpc /var/local/git/grpc && \
		cd /var/local/git/grpc && \
    git submodule update --init && \
    echo "--- installing protobuf ---" && \
    cd third_party/protobuf && \
    ./autogen.sh && ./configure --enable-shared && \
    make -j$(nproc) && make -j$(nproc) check && make install && make clean && ldconfig && \
    echo "--- installing grpc ---" && \
    cd /var/local/git/grpc && \
    make -j$(nproc) && make install && make clean && ldconfig


================================================
FILE: 1.8/cxx/README.md
================================================
# gRPC C++ Docker image

This is the official docker image for the C++ installation of [gRPC][].  For an
overview and usage examples, see the [gRPC C++ documentation][].

# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official [gRPC documentation][].

[grpc]:http:/grpc.io
[grpc documentation]:http://www.grpc.io/docs/
[grpc C++ documentation]:http://www.grpc.io/docs/tutorials/basic/c.html


================================================
FILE: LICENSE
================================================

                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright [yyyy] [name of copyright owner]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.


================================================
FILE: README.md
================================================
# IMPORTANT: This repository contains gRPC docker images that are no longer maintained and most of them are out of date (and potentially broken).

*We are working on providing an improved installation story and a better automated mechanism for updating the docker images
in this repository. Until than happens, please refrain from using the docker images defined here.*

# About this repo

This is the Git repo containing the official Docker images for [grpc][].


# What is gRPC ?

A high performance, open source, general RPC framework that puts mobile and
HTTP/2 first, available in many programming languages.  For full details, see
the official [gRPC documentation][].


# Organization

The repo is set up to mirror the structure of [docker-library][] repos.

- For each grpc release, there is a folder named after the release version.
- Within each release folder, there is a folder containing Dockerfiles for each of the supported grpc programming languages.
- Within each language folder, there is a main Dockerfile derived from the latest stable debian release and version of the programming language.
  - Optionally, there may be sub-folders containing other docker images, e.g, 'slim' versions or versions built at other versions of debian or the programming language

The folder structure matches that used by [official docker images][]. This
anticipates the future publishing gRPC as an official docker image once it
reaches it GA milestone.


[docker-library]:https://github.com/docker-library
[grpc]:http:/grpc.io
[official docker images]:https://github.com/docker-library/official-images
[grpc documentation]:http://www.grpc.io/docs/
Download .txt
gitextract_mu59nbkm/

├── .gitignore
├── 0.10/
│   ├── cxx/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── golang/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── node/
│   │   ├── Dockerfile
│   │   ├── README.md
│   │   └── onbuild/
│   │       └── Dockerfile
│   ├── php/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── python/
│   │   ├── Dockerfile
│   │   ├── README.md
│   │   └── onbuild/
│   │       └── Dockerfile
│   └── ruby/
│       ├── Dockerfile
│       ├── README.md
│       └── onbuild/
│           └── Dockerfile
├── 0.11/
│   ├── csharp/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── cxx/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── golang/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── node/
│   │   ├── Dockerfile
│   │   ├── README.md
│   │   └── onbuild/
│   │       └── Dockerfile
│   ├── php/
│   │   ├── Dockerfile
│   │   ├── README.md
│   │   ├── onbuild/
│   │   │   └── Dockerfile
│   │   └── sample_app/
│   │       ├── Dockerfile
│   │       ├── client.php
│   │       ├── composer.json
│   │       ├── helloworld.php
│   │       └── helloworld.proto
│   ├── python/
│   │   ├── Dockerfile
│   │   ├── README.md
│   │   └── onbuild/
│   │       └── Dockerfile
│   └── ruby/
│       ├── Dockerfile
│       ├── README.md
│       └── onbuild/
│           └── Dockerfile
├── 1.0/
│   ├── csharp/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── cxx/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── golang/
│   │   ├── Dockerfile
│   │   └── README.md
│   ├── node/
│   │   ├── Dockerfile
│   │   ├── README.md
│   │   └── onbuild/
│   │       └── Dockerfile
│   ├── php/
│   │   ├── Dockerfile
│   │   ├── README.md
│   │   ├── onbuild/
│   │   │   └── Dockerfile
│   │   └── sample_app/
│   │       ├── Dockerfile
│   │       ├── Helloworld/
│   │       │   └── GreeterClient.php
│   │       ├── client.php
│   │       ├── composer.json
│   │       ├── helloworld.pb.php
│   │       └── helloworld.proto
│   ├── python/
│   │   ├── Dockerfile
│   │   ├── README.md
│   │   ├── onbuild/
│   │   │   └── Dockerfile
│   │   └── slim/
│   │       └── Dockerfile
│   └── ruby/
│       ├── Dockerfile
│       ├── README.md
│       └── onbuild/
│           └── Dockerfile
├── 1.10/
│   └── cxx/
│       ├── Dockerfile
│       └── README.md
├── 1.12.0/
│   └── cxx/
│       ├── Dockerfile
│       └── README.md
├── 1.13.0/
│   └── python/
│       ├── Dockerfile
│       ├── README.md
│       ├── onbuild/
│       │   └── Dockerfile
│       └── slim/
│           └── Dockerfile
├── 1.15.0/
│   └── python/
│       ├── Dockerfile
│       ├── README.md
│       ├── alpine/
│       │   └── Dockerfile
│       ├── onbuild/
│       │   └── Dockerfile
│       └── slim/
│           └── Dockerfile
├── 1.21.0/
│   └── cxx/
│       ├── Dockerfile
│       └── README.md
├── 1.4/
│   └── python/
│       ├── Dockerfile
│       ├── README.md
│       ├── onbuild/
│       │   └── Dockerfile
│       └── slim/
│           └── Dockerfile
├── 1.8/
│   └── cxx/
│       ├── Dockerfile
│       └── README.md
├── LICENSE
└── README.md
Download .txt
SYMBOL INDEX (24 symbols across 3 files)

FILE: 0.11/php/sample_app/helloworld.php
  class HelloRequest (line 8) | class HelloRequest extends \DrSlump\Protobuf\Message {
    method descriptor (line 17) | public static function descriptor()
    method hasName (line 41) | public function hasName(){
    method clearName (line 50) | public function clearName(){
    method getName (line 59) | public function getName(){
    method setName (line 69) | public function setName( $value){
  class HelloReply (line 77) | class HelloReply extends \DrSlump\Protobuf\Message {
    method descriptor (line 86) | public static function descriptor()
    method hasMessage (line 110) | public function hasMessage(){
    method clearMessage (line 119) | public function clearMessage(){
    method getMessage (line 128) | public function getMessage(){
    method setMessage (line 138) | public function setMessage( $value){
  class GreeterClient (line 146) | class GreeterClient extends \Grpc\BaseStub {
    method __construct (line 148) | public function __construct($hostname, $opts) {
    method SayHello (line 154) | public function SayHello(\helloworld\HelloRequest $argument, $metadata...

FILE: 1.0/php/sample_app/Helloworld/GreeterClient.php
  class GreeterClient (line 37) | class GreeterClient extends \Grpc\BaseStub {
    method __construct (line 44) | public function __construct($hostname, $opts, $channel = null) {
    method SayHello (line 54) | public function SayHello(\Helloworld\HelloRequest $argument,

FILE: 1.0/php/sample_app/helloworld.pb.php
  class HelloRequest (line 12) | class HelloRequest extends \Google\Protobuf\Internal\Message
    method getName (line 16) | public function getName()
    method setName (line 21) | public function setName($var)
  class HelloReply (line 29) | class HelloReply extends \Google\Protobuf\Internal\Message
    method getMessage (line 33) | public function getMessage()
    method setMessage (line 38) | public function setMessage($var)
Condensed preview — 87 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (123K chars).
[
  {
    "path": ".gitignore",
    "chars": 14,
    "preview": "*~\n.idea\n*.iml"
  },
  {
    "path": "0.10/cxx/Dockerfile",
    "chars": 2216,
    "preview": "# Copyright 2015, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "0.10/cxx/README.md",
    "chars": 520,
    "preview": "# gRPC C++ Docker image\n\nThis is the official docker image for the C++ installation of [grpc][].  For an\noverview and us"
  },
  {
    "path": "0.10/golang/Dockerfile",
    "chars": 1819,
    "preview": "# Copyright 2015, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "0.10/golang/README.md",
    "chars": 368,
    "preview": "# gRPC Go Docker image\n======================\n\nThis is the official docker image for grpc Go.  For an overview and usage"
  },
  {
    "path": "0.10/node/Dockerfile",
    "chars": 1829,
    "preview": "# Copyright 2015, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "0.10/node/README.md",
    "chars": 1424,
    "preview": "# gRPC Node.js Docker image\n\nThis is the official docker image for the Node.js library of grpc.  For an\noverview and usa"
  },
  {
    "path": "0.10/node/onbuild/Dockerfile",
    "chars": 185,
    "preview": "FROM grpc/node:0.10\n\nRUN mkdir -p /usr/src/app\nWORKDIR /usr/src/app\n\nONBUILD COPY package.json /usr/src/app/\nONBUILD RUN"
  },
  {
    "path": "0.10/php/Dockerfile",
    "chars": 1810,
    "preview": "# Copyright 2015, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "0.10/php/README.md",
    "chars": 517,
    "preview": "# gRPC PHP Docker image\n\nThis is the official docker image for the PHP library of [grpc][].  For an\noverview and usage e"
  },
  {
    "path": "0.10/python/Dockerfile",
    "chars": 1837,
    "preview": "# Copyright 2015, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "0.10/python/README.md",
    "chars": 1525,
    "preview": "# gRPC Python Docker image\n\nThis is the official docker image for the Python facility of grpc.  For an\noverview and usag"
  },
  {
    "path": "0.10/python/onbuild/Dockerfile",
    "chars": 202,
    "preview": "FROM grpc/python:0.10\n\nRUN mkdir -p /usr/src/app\nWORKDIR /usr/src/app\n\nONBUILD COPY requirements.txt /usr/src/app/\nONBUI"
  },
  {
    "path": "0.10/ruby/Dockerfile",
    "chars": 1826,
    "preview": "# Copyright 2015, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "0.10/ruby/README.md",
    "chars": 1747,
    "preview": "# gRPC Ruby Docker image\n\nThis is the official docker image for the Ruby library of grpc.  For an\noverview and usage exa"
  },
  {
    "path": "0.10/ruby/onbuild/Dockerfile",
    "chars": 300,
    "preview": "FROM grpc/ruby:0.10\n\n# throw errors if Gemfile has been modified since Gemfile.lock\nRUN bundle config --global frozen 1\n"
  },
  {
    "path": "0.11/csharp/Dockerfile",
    "chars": 3106,
    "preview": "# Copyright 2015, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "0.11/csharp/README.md",
    "chars": 93,
    "preview": "# gRPC C# Docker image\n\nThis is the official docker image for the C# installation of gRPC. \n\n"
  },
  {
    "path": "0.11/cxx/Dockerfile",
    "chars": 2216,
    "preview": "# Copyright 2015, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "0.11/cxx/README.md",
    "chars": 520,
    "preview": "# gRPC C++ Docker image\n\nThis is the official docker image for the C++ installation of [grpc][].  For an\noverview and us"
  },
  {
    "path": "0.11/golang/Dockerfile",
    "chars": 2247,
    "preview": "# Copyright 2015, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "0.11/golang/README.md",
    "chars": 368,
    "preview": "# gRPC Go Docker image\n======================\n\nThis is the official docker image for grpc Go.  For an overview and usage"
  },
  {
    "path": "0.11/node/Dockerfile",
    "chars": 1831,
    "preview": "# Copyright 2015, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "0.11/node/README.md",
    "chars": 1424,
    "preview": "# gRPC Node.js Docker image\n\nThis is the official docker image for the Node.js library of grpc.  For an\noverview and usa"
  },
  {
    "path": "0.11/node/onbuild/Dockerfile",
    "chars": 185,
    "preview": "FROM grpc/node:0.11\n\nRUN mkdir -p /usr/src/app\nWORKDIR /usr/src/app\n\nONBUILD COPY package.json /usr/src/app/\nONBUILD RUN"
  },
  {
    "path": "0.11/php/Dockerfile",
    "chars": 2071,
    "preview": "# Copyright 2015, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "0.11/php/README.md",
    "chars": 1898,
    "preview": "# gRPC PHP Docker image\n\nThis is the official docker image for the PHP library of [gRPC][].  For an\noverview and usage e"
  },
  {
    "path": "0.11/php/onbuild/Dockerfile",
    "chars": 1672,
    "preview": "# Copyright 2015, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "0.11/php/sample_app/Dockerfile",
    "chars": 63,
    "preview": "FROM grpc/php:0.11-onbuild\n\nCMD [\"apache2ctl\", \"-DFOREGROUND\"]\n"
  },
  {
    "path": "0.11/php/sample_app/client.php",
    "chars": 147,
    "preview": "<?php\n\nrequire 'vendor/autoload.php';\nrequire 'helloworld.php';\n\n$client = new helloworld\\GreeterClient('localhost:50051"
  },
  {
    "path": "0.11/php/sample_app/composer.json",
    "chars": 274,
    "preview": "{\n  \"require\": {\n    \"php\": \">=5.5.0\",\n    \"grpc/grpc\": \"dev-release-0_11\",\n    \"google/auth\": \"dev-master\",\n    \"datto/"
  },
  {
    "path": "0.11/php/sample_app/helloworld.php",
    "chars": 3476,
    "preview": "<?php\n// DO NOT EDIT! Generated by Protobuf-PHP protoc plugin 1.0\n// Source: helloworld.proto\n//   Date: 2015-10-17 02:2"
  },
  {
    "path": "0.11/php/sample_app/helloworld.proto",
    "chars": 1939,
    "preview": "// Copyright 2015, Google Inc.\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or "
  },
  {
    "path": "0.11/python/Dockerfile",
    "chars": 1839,
    "preview": "# Copyright 2015, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "0.11/python/README.md",
    "chars": 1525,
    "preview": "# gRPC Python Docker image\n\nThis is the official docker image for the Python facility of grpc.  For an\noverview and usag"
  },
  {
    "path": "0.11/python/onbuild/Dockerfile",
    "chars": 203,
    "preview": "FROM grpc/python:0.11\n\nRUN mkdir -p /usr/src/app\nWORKDIR /usr/src/app\n\nONBUILD COPY requirements.txt /usr/src/app/\nONBUI"
  },
  {
    "path": "0.11/ruby/Dockerfile",
    "chars": 1828,
    "preview": "# Copyright 2015, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "0.11/ruby/README.md",
    "chars": 1747,
    "preview": "# gRPC Ruby Docker image\n\nThis is the official docker image for the Ruby library of grpc.  For an\noverview and usage exa"
  },
  {
    "path": "0.11/ruby/onbuild/Dockerfile",
    "chars": 300,
    "preview": "FROM grpc/ruby:0.11\n\n# throw errors if Gemfile has been modified since Gemfile.lock\nRUN bundle config --global frozen 1\n"
  },
  {
    "path": "1.0/csharp/Dockerfile",
    "chars": 1849,
    "preview": "# Copyright 2016, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "1.0/csharp/README.md",
    "chars": 93,
    "preview": "# gRPC C# Docker image\n\nThis is the official docker image for the C# installation of gRPC. \n\n"
  },
  {
    "path": "1.0/cxx/Dockerfile",
    "chars": 2026,
    "preview": "# Copyright 2016, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "1.0/cxx/README.md",
    "chars": 520,
    "preview": "# gRPC C++ Docker image\n\nThis is the official docker image for the C++ installation of [gRPC][].  For an\noverview and us"
  },
  {
    "path": "1.0/golang/Dockerfile",
    "chars": 2834,
    "preview": "# Copyright 2016, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "1.0/golang/README.md",
    "chars": 368,
    "preview": "# gRPC Go Docker image\n======================\n\nThis is the official docker image for gRPC Go.  For an overview and usage"
  },
  {
    "path": "1.0/node/Dockerfile",
    "chars": 1648,
    "preview": "# Copyright 2016, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "1.0/node/README.md",
    "chars": 1424,
    "preview": "# gRPC Node.js Docker image\n\nThis is the official docker image for the Node.js library of gRPC.  For an\noverview and usa"
  },
  {
    "path": "1.0/node/onbuild/Dockerfile",
    "chars": 184,
    "preview": "FROM grpc/node:1.0\n\nRUN mkdir -p /usr/src/app\nWORKDIR /usr/src/app\n\nONBUILD COPY package.json /usr/src/app/\nONBUILD RUN "
  },
  {
    "path": "1.0/php/Dockerfile",
    "chars": 2160,
    "preview": "# Copyright 2016, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "1.0/php/README.md",
    "chars": 1741,
    "preview": "# gRPC PHP Docker image\n\nThis is the official docker image for the PHP library of [gRPC][].  For an\noverview and usage e"
  },
  {
    "path": "1.0/php/onbuild/Dockerfile",
    "chars": 1671,
    "preview": "# Copyright 2016, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "1.0/php/sample_app/Dockerfile",
    "chars": 62,
    "preview": "FROM grpc/php:1.0-onbuild\n\nCMD [\"apache2ctl\", \"-DFOREGROUND\"]\n"
  },
  {
    "path": "1.0/php/sample_app/Helloworld/GreeterClient.php",
    "chars": 2495,
    "preview": "<?php\n// GENERATED CODE -- DO NOT EDIT!\n\n// Original file comments:\n// Copyright 2016, Google Inc.\n// All rights reserve"
  },
  {
    "path": "1.0/php/sample_app/client.php",
    "chars": 435,
    "preview": "<?php\n\nrequire 'vendor/autoload.php';\nrequire 'Helloworld/GreeterClient.php';\nrequire 'helloworld.pb.php';\n\n\n$client = n"
  },
  {
    "path": "1.0/php/sample_app/composer.json",
    "chars": 140,
    "preview": "{\n  \"name\": \"grpc/grpc-demo\",\n  \"description\": \"gRPC example for PHP\",\n  \"require\": {\n    \"php\": \">=5.5.0\",\n    \"grpc/gr"
  },
  {
    "path": "1.0/php/sample_app/helloworld.pb.php",
    "chars": 1350,
    "preview": "<?php\n# Generated by the protocol buffer compiler.  DO NOT EDIT!\n# source: helloworld.proto\n\nnamespace Helloworld;\n\nuse "
  },
  {
    "path": "1.0/php/sample_app/helloworld.proto",
    "chars": 1921,
    "preview": "// Copyright 2016, Google Inc.\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or "
  },
  {
    "path": "1.0/python/Dockerfile",
    "chars": 1700,
    "preview": "# Copyright 2016, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "1.0/python/README.md",
    "chars": 1524,
    "preview": "# gRPC Python Docker image\n\nThis is the official docker image for the Python facility of gRPC.  For an\noverview and usag"
  },
  {
    "path": "1.0/python/onbuild/Dockerfile",
    "chars": 202,
    "preview": "FROM grpc/python:1.0\n\nRUN mkdir -p /usr/src/app\nWORKDIR /usr/src/app\n\nONBUILD COPY requirements.txt /usr/src/app/\nONBUIL"
  },
  {
    "path": "1.0/python/slim/Dockerfile",
    "chars": 1709,
    "preview": "# Copyright 2018 The gRPC Authors\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or "
  },
  {
    "path": "1.0/ruby/Dockerfile",
    "chars": 1629,
    "preview": "# Copyright 2016, Google Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or with"
  },
  {
    "path": "1.0/ruby/README.md",
    "chars": 1746,
    "preview": "# gRPC Ruby Docker image\n\nThis is the official docker image for the Ruby library of gRPC.  For an\noverview and usage exa"
  },
  {
    "path": "1.0/ruby/onbuild/Dockerfile",
    "chars": 299,
    "preview": "FROM grpc/ruby:1.0\n\n# throw errors if Gemfile has been modified since Gemfile.lock\nRUN bundle config --global frozen 1\n\n"
  },
  {
    "path": "1.10/cxx/Dockerfile",
    "chars": 1326,
    "preview": "# Copyright 2017 gRPC authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use thi"
  },
  {
    "path": "1.10/cxx/README.md",
    "chars": 520,
    "preview": "# gRPC C++ Docker image\n\nThis is the official docker image for the C++ installation of [gRPC][].  For an\noverview and us"
  },
  {
    "path": "1.12.0/cxx/Dockerfile",
    "chars": 1339,
    "preview": "# Copyright 2018 gRPC authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use thi"
  },
  {
    "path": "1.12.0/cxx/README.md",
    "chars": 520,
    "preview": "# gRPC C++ Docker image\n\nThis is the official docker image for the C++ installation of [gRPC][].  For an\noverview and us"
  },
  {
    "path": "1.13.0/python/Dockerfile",
    "chars": 881,
    "preview": "# Copyright 2018 The gRPC Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use "
  },
  {
    "path": "1.13.0/python/README.md",
    "chars": 1584,
    "preview": "# gRPC Python Docker image\n\nThis is the official docker image for the Python facility of [gRPC][grpc].\nFor an overview a"
  },
  {
    "path": "1.13.0/python/onbuild/Dockerfile",
    "chars": 784,
    "preview": "# Copyright 2018 The gRPC Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use "
  },
  {
    "path": "1.13.0/python/slim/Dockerfile",
    "chars": 886,
    "preview": "# Copyright 2018 The gRPC Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use "
  },
  {
    "path": "1.15.0/python/Dockerfile",
    "chars": 881,
    "preview": "# Copyright 2018 The gRPC Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use "
  },
  {
    "path": "1.15.0/python/README.md",
    "chars": 1584,
    "preview": "# gRPC Python Docker image\n\nThis is the official docker image for the Python facility of [gRPC][grpc].\nFor an overview a"
  },
  {
    "path": "1.15.0/python/alpine/Dockerfile",
    "chars": 1149,
    "preview": "# Copyright 2018 The gRPC Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use "
  },
  {
    "path": "1.15.0/python/onbuild/Dockerfile",
    "chars": 784,
    "preview": "# Copyright 2018 The gRPC Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use "
  },
  {
    "path": "1.15.0/python/slim/Dockerfile",
    "chars": 886,
    "preview": "# Copyright 2018 The gRPC Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use "
  },
  {
    "path": "1.21.0/cxx/Dockerfile",
    "chars": 1417,
    "preview": "# Copyright 2019 The gRPC Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use "
  },
  {
    "path": "1.21.0/cxx/README.md",
    "chars": 520,
    "preview": "# gRPC C++ Docker image\n\nThis is the official docker image for the C++ installation of [gRPC][].  For an\noverview and us"
  },
  {
    "path": "1.4/python/Dockerfile",
    "chars": 752,
    "preview": "# Copyright 2018 The gRPC Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use "
  },
  {
    "path": "1.4/python/README.md",
    "chars": 1582,
    "preview": "# gRPC Python Docker image\n\nThis is the official docker image for the Python facility of [gRPC][grpc].\nFor an overview a"
  },
  {
    "path": "1.4/python/onbuild/Dockerfile",
    "chars": 780,
    "preview": "# Copyright 2017 gRPC authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use thi"
  },
  {
    "path": "1.4/python/slim/Dockerfile",
    "chars": 757,
    "preview": "# Copyright 2018 The gRPC Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use "
  },
  {
    "path": "1.8/cxx/Dockerfile",
    "chars": 1325,
    "preview": "# Copyright 2017 gRPC authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use thi"
  },
  {
    "path": "1.8/cxx/README.md",
    "chars": 520,
    "preview": "# gRPC C++ Docker image\n\nThis is the official docker image for the C++ installation of [gRPC][].  For an\noverview and us"
  },
  {
    "path": "LICENSE",
    "chars": 11358,
    "preview": "\n                                 Apache License\n                           Version 2.0, January 2004\n                  "
  },
  {
    "path": "README.md",
    "chars": 1650,
    "preview": "# IMPORTANT: This repository contains gRPC docker images that are no longer maintained and most of them are out of date "
  }
]

About this extraction

This page contains the full source code of the grpc/grpc-docker-library GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 87 files (111.9 KB), approximately 29.8k tokens, and a symbol index with 24 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!