File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 1
- FROM golang:1.14.4-alpine3.11 as build
1
+ FROM golang:1.14.4-alpine3.12 as build
2
2
3
3
# 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'
8
5
9
6
WORKDIR /src/prometheus-kafka-adapter
10
7
ADD . /src/prometheus-kafka-adapter
11
8
12
9
RUN go test
13
10
RUN go build -tags static -o /prometheus-kafka-adapter
14
11
15
- FROM alpine:3.11
12
+ FROM alpine:3.12
16
13
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'
20
15
21
16
COPY --from=build /src/prometheus-kafka-adapter/schemas/metric.avsc /schemas/metric.avsc
22
17
COPY --from=build /prometheus-kafka-adapter /
You can’t perform that action at this time.
0 commit comments