Skip to content

Commit 4c98a54

Browse files
committed
chore: bump some dependencies and build docker image
1 parent 92182ca commit 4c98a54

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.17.3-alpine as build
1+
FROM golang:1.17.5-alpine3.15 as build
22
WORKDIR /src/prometheus-kafka-adapter
33

44
COPY go.mod go.sum vendor *.go ./
@@ -8,7 +8,7 @@ ADD . /src/prometheus-kafka-adapter
88
RUN apk add --no-cache gcc musl-dev
99
RUN go build -ldflags='-w -s -extldflags "-static"' -tags musl,static,netgo -mod=vendor -o /prometheus-kafka-adapter
1010

11-
FROM alpine:3.14
11+
FROM alpine:3.15
1212

1313
COPY schemas/metric.avsc /schemas/metric.avsc
1414
COPY --from=build /prometheus-kafka-adapter /

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@ test:
1313
docker run --rm -v $(CURDIR):/app:z -w /app golang:$(MUSL_GO_VER) sh tools/testscript.sh vet
1414
docker run --rm -v $(CURDIR):/app:z -w /app golang:$(MUSL_GO_VER) sh tools/testscript.sh test
1515

16-
build: build-libc build-musl
16+
build: build-libc build-musl build-docker-image
1717

1818
build-libc:
1919
docker run --rm -v $(CURDIR):/app:z -w /app golang:$(LIBC_GO_VER) sh tools/buildscript.sh $(NAME)
2020

2121
build-musl:
2222
docker run --rm -v $(CURDIR):/app:z -w /app golang:$(MUSL_GO_VER) sh tools/buildscript.sh $(NAME)
2323

24+
build-docker-image:
25+
docker build -t telefonica/prometheus-kafka-adapter:latest .
26+
2427
vendor-update:
2528
rm -rf go.mod go.sum vendor/
2629
docker run --rm -v $(CURDIR):/app:z -w /app golang:$(MUSL_GO_VER) go mod init $(PACKAGE_NAME)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The Avro-JSON serialization is the same. See the [Avro schema](./schemas/metric.
3434

3535
### prometheus-kafka-adapter
3636

37-
There is a docker image `telefonica/prometheus-kafka-adapter:1.7.0` [available on Docker Hub](https://hub.docker.com/r/telefonica/prometheus-kafka-adapter/).
37+
There is a docker image `telefonica/prometheus-kafka-adapter:1.8.0` [available on Docker Hub](https://hub.docker.com/r/telefonica/prometheus-kafka-adapter/).
3838

3939
Prometheus-kafka-adapter listens for metrics coming from Prometheus and sends them to Kafka. This behaviour can be configured with the following environment variables:
4040

0 commit comments

Comments
 (0)