Skip to content

Commit 834da2d

Browse files
committed
Rename internal binary
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent c6467d8 commit 834da2d

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ COPY main.go .
1313
# Run a gofmt and exclude all vendored code.
1414
RUN test -z "$(gofmt -l $(find . -type f -name '*.go' -not -path "./vendor/*"))" \
1515
&& go test -v ./... \
16-
&& CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-s -w" -installsuffix cgo -o /usr/bin/producer
16+
&& CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-s -w" -installsuffix cgo -o /usr/bin/connector
1717

1818
FROM alpine:3.11 as ship
1919
RUN apk add --no-cache ca-certificates
2020

21-
COPY --from=build /usr/bin/producer /usr/bin/producer
21+
COPY --from=build /usr/bin/connector /usr/bin/connector
2222
WORKDIR /root/
2323

24-
CMD ["/usr/bin/producer"]
24+
CMD ["/usr/bin/connector"]

README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
# nats-connector
22

3-
[![Go Report Card](https://goreportcard.com/badge/github.com/openfaas-incubator/nats-connector)](https://goreportcard.com/report/github.com/openfaas-incubator/nats-connector) [![Build
4-
Status](https://travis-ci.com/openfaas-incubator/nats-connector.svg?branch=master)](https://travis-ci.org/openfaas-incubator/nats-connector) [![GoDoc](https://godoc.org/github.com/openfaas-incubator/nats-connector?status.svg)](https://godoc.org/github.com/openfaas-incubator/nats-connector) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
3+
[![Build Status](https://travis-ci.com/openfaas-incubator/nats-connector.svg?branch=master)](https://travis-ci.com/openfaas-incubator/nats-connector)
4+
[![Go Report Card](https://goreportcard.com/badge/github.com/openfaas-incubator/nats-connector)](https://goreportcard.com/report/github.com/openfaas-incubator/nats-connector)
5+
[![GoDoc](https://godoc.org/github.com/openfaas-incubator/nats-connector?status.svg)](https://godoc.org/github.com/openfaas-incubator/nats-connector)
6+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
57
[![OpenFaaS](https://img.shields.io/badge/openfaas-serverless-blue.svg)](https://www.openfaas.com)
68

7-
The NATS connector connects OpenFaaS functions to NATS topics.
8-
9-
## Building
10-
11-
```
12-
export TAG=0.2.0
13-
make build push
14-
```
9+
An OpenFaaS event-connector to trigger functions from NATS.
1510

1611
## Try it out
1712

@@ -68,6 +63,15 @@ The following instructions show how to run and test `nats-connector` on Kubernet
6863
2019-12-29T19:06:50Z 2019/12/29 19:06:50 received "test message"
6964
```
7065

66+
## Building
67+
68+
Build and release is done via CI, but you can also build your own version locally.
69+
70+
```bash
71+
export TAG=0.2.1
72+
make build push
73+
```
74+
7175
### Configuration
7276

7377
Configuration is by environment variable, which can be set in the Kubernetes YAML file: [yaml/kubernetes/connector-dep.yaml](./yaml/kubernetes/connector-dep.yaml)

0 commit comments

Comments
 (0)