Bare telegraf compiled with https://github.com/influxdata/telegraf/pull/2236
344
Note: just for testing!!!
Example run:
docker run \
--rm \
--net=host \
-e INFLUXDB_URL=http://influx-db.marathon.l4lb.thisdcos.directory:8086 \
-v /var:/var:ro \
-v /var/run:/var/run:ro \
-v /dev:/dev:ro \
-v /sys:/sys:ro \
--privileged \
bergerx/telegraf-with-pull-2236
Dockerfile:
FROM scratch
COPY telegraf /
COPY telegraf.conf /
ENTRYPOINT ["/telegraf"]
ENV \
INFLUXDB_URL=http://localhost:8086 \
TELEGRAF_CONFIG_PATH=/telegraf.conf
compile and push
bdogan@Bekirs-MacBook-Pro:~/go/src/github.com/influxdata/telegraf$ env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -v cmd/telegraf/telegraf.go
bdogan@Bekirs-MacBook-Pro:~/go/src/github.com/influxdata/telegraf$ docker build -t bergerx/telegraf-with-pull-2236 .
bdogan@Bekirs-MacBook-Pro:~/go/src/github.com/influxdata/telegraf$ docker push bergerx/telegraf-with-pull-2236
Content type
Image
Digest
Size
9 MB
Last updated
over 9 years ago
docker pull bergerx/telegraf-with-pull-2236