Skip to content
This repository has been archived by the owner on Mar 13, 2021. It is now read-only.

Drop gRPC support #70

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ FROM node:10.7.0-alpine
WORKDIR /usr/app
COPY . .
ENV HOST 0.0.0.0
ENV GRPC_PORT 10382
ENV HTTP_PORT 8080
RUN npm install --production
EXPOSE 10382 8080
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

## Purpose
The *node function invoker* provides a Docker base layer for a function consisting of a single NodeJS module.
It accepts gRPC requests, invokes the command for each request in the input stream, and sends the command's output to the stream of gRPC responses.
It accepts HTTP requests, invokes the function for each request in the input stream, and sends the function's output to the HTTP response.

## Development

### Prerequisites

The following tools are required to build this project:

- `node` 8 (only for tests)
- `node` 10 (only for tests)
- [jq](https://stedolan.github.io/jq/download/)
- Docker

Expand Down
2 changes: 1 addition & 1 deletion lib/interaction-models/node-streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function nodeStreamsInteractionModel(fn, argumentTransformer, messageStream) {
const errorMessage = buildErrorMessage(e, {
correlationId: headers.getValue('correlationId')
});
// write errors directly to grpcStream
// write errors directly to messageStream
messageStream.write(errorMessage.toRiffMessage());
}
callback();
Expand Down
32 changes: 0 additions & 32 deletions lib/protocols/grpc.js

This file was deleted.

2 changes: 1 addition & 1 deletion node-invoker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
- "*.js"
functionTemplate:
spec:
protocol: grpc
protocol: http
files:
- path: Dockerfile
template: |
Expand Down
Loading