Skip to content

Commit a70c041

Browse files
authored
Building with librdkafka 1.6+ doesn't require librdkafka library any more (#67)
* "-tags static" makes the package re-distributable without requiring librdkafka on the receiving host * mention librdkafka requirement in build as well * don't do apt step at all * don't require librdkafka during build in docs either * revert static build change
1 parent d1cbd70 commit a70c041

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
FROM golang:1.16.1-buster as build
2-
3-
RUN apt update && apt install build-essential -y
1+
FROM golang:1.16.3-buster as build
42

53
WORKDIR /src/prometheus-kafka-adapter
64

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ When deployed in a Kubernetes cluster using Helm and using an external Prometheu
7878

7979
## development
8080

81-
Building requires librdkafka be available on the building host. It is typically available in distribution package archives, but can also be downloaded and built from here: https://github.com/edenhill/librdkafka.git
82-
8381
```
8482
go test
8583
go build

0 commit comments

Comments
 (0)