Skip to content

Commit 2a1c0aa

Browse files
authored
fix: update broken alpine dep in dockerfile (#61)
* fix: update broken alpine dep in dockerfile * chore: remove librdkafka-dev from final image
1 parent 244d46b commit 2a1c0aa

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Dockerfile

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
1-
FROM golang:1.14.4-alpine3.11 as build
1+
FROM golang:1.14.4-alpine3.12 as build
22

33
# Get prebuilt libkafka.
4-
# XXX stop using the edgecommunity channel once librdkafka 1.3.0+ is officially published
5-
RUN echo "@edge http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \
6-
echo "@edgecommunity http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
7-
apk add --no-cache alpine-sdk 'librdkafka@edgecommunity>=1.3.0' 'librdkafka-dev@edgecommunity>=1.3.0'
4+
RUN apk add --no-cache alpine-sdk 'librdkafka>=1.3.0' 'librdkafka-dev>=1.3.0'
85

96
WORKDIR /src/prometheus-kafka-adapter
107
ADD . /src/prometheus-kafka-adapter
118

129
RUN go test
1310
RUN go build -tags static -o /prometheus-kafka-adapter
1411

15-
FROM alpine:3.11
12+
FROM alpine:3.12
1613

17-
RUN echo "@edge http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \
18-
echo "@edgecommunity http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
19-
apk add --no-cache 'librdkafka@edgecommunity>=1.3.0'
14+
RUN apk add --no-cache alpine-sdk 'librdkafka>=1.3.0'
2015

2116
COPY --from=build /src/prometheus-kafka-adapter/schemas/metric.avsc /schemas/metric.avsc
2217
COPY --from=build /prometheus-kafka-adapter /

0 commit comments

Comments
 (0)