Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add telegrafV1.33.0 #279

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions influxdata/telegraf/1.33.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM cr.loongnix.cn/library/golang:1.23 as builder
ENV GOPROXY https://goproxy.cn
WORKDIR /go/src/telegraf
COPY ./src/telegraf /go/src/telegraf
RUN go mod tidy && make deps
RUN make go-install
FROM cr.loongnix.cn/library/buildpack-deps:buster-curl
COPY --from=builder /go/bin/* /usr/bin/
EXPOSE 8125/udp 8092/udp 8094
ENTRYPOINT ["telegraf"]
17 changes: 17 additions & 0 deletions influxdata/telegraf/1.33.0/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
REGISTRY?=cr.loongnix.cn
ORGANIZATION?=calico
REPOSITORY?=telegraf
TAG?=1.33.0

IMAGE_NAME := ${REGISTRY}/${ORGANIZATION}/${REPOSITORY}:$(TAG)
SOURCE_URL := https://github.com/influxdata/telegraf.git
SOURCE := $(shell echo $(SOURCE_URL) | awk -F '/' '{print $$NF}' | awk -F '.' '{print $$1}')
default:image

image: src/$(SOURCE)
docker build -t $(IMAGE_NAME) .

src/$(SOURCE):
git clone -b v1.33.0 $(SOURCE_URL) $@
clean:
rm -rf src
Loading