This repository was archived by the owner on Feb 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +519
-0
lines changed
Expand file tree Collapse file tree 4 files changed +519
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ language : go
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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+ )
You can’t perform that action at this time.
0 commit comments