Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit 9c6cb79

Browse files
committed
add go mod, Dockerfile and experiment with travis
1 parent 6d5d538 commit 9c6cb79

File tree

4 files changed

+519
-0
lines changed

4 files changed

+519
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
language: go

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM golang:1.15 AS builder
2+
3+
# Add your files into the container
4+
ADD . /opt/build
5+
WORKDIR /opt/build
6+
7+
# build the binary
8+
RUN CGO_ENABLED=0 go build -o reducer -v
9+
FROM alpine:3.12
10+
WORKDIR /
11+
12+
# COPY binary from previous stegae to your desired location
13+
COPY --from=builder /opt/build/reducer .
14+
ENTRYPOINT /reducer --kafka.brokers=${KAFKA_BROKERS} --kafka.in.topic=${KAFKA_IN_TOPIC} --kafka.out.topic=${KAFKA_OUT_TOPIC} --kafka.consumer_group=${CONSUMER_GROUP} --kafka.disable_auth=${DISABLE_AUTH} --kafka.disable_tls=${DISABLE_TLS} --kafka.auth_anon=${AUTH_ANON}

go.mod

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module github.com/bwNetFlow/processor_reducer
2+
3+
go 1.15
4+
5+
require (
6+
github.com/bwNetFlow/kafkaconnector v0.0.0-20201020151646-77a015fe550e
7+
github.com/bwNetFlow/protobuf/go v0.0.0-20200514124336-bf8695918c8c
8+
github.com/golang/snappy v0.0.2 // indirect
9+
github.com/klauspost/compress v1.11.1 // indirect
10+
golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect
11+
golang.org/x/net v0.0.0-20201021035429-f5854403a974 // indirect
12+
golang.org/x/sys v0.0.0-20201020230747-6e5568b54d1a // indirect
13+
google.golang.org/protobuf v1.25.0 // indirect
14+
)

0 commit comments

Comments
 (0)