Sarke / telegraf-timescaledb-docker

Based on the official telegraf docker image, but replaces the binary with the one from Timescale that supports Postgres
MIT License
1 stars 2 forks source link

Alpine version #1

Open winsento opened 4 years ago

winsento commented 4 years ago

Dockerfile based on Alpine version.

FROM telegraf:1.13.0-alpine

RUN wget https://telegrafreleases.blob.core.windows.net/linux/telegraf && \
    mv telegraf /usr/bin/telegraf && \
    chmod a+x /usr/bin/telegraf

ENV TELEGRAF_VERSION=1.13.0

EXPOSE 8125/udp 8092/udp 8094

RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
ENTRYPOINT ["/entrypoint.sh"]
CMD ["telegraf"]
Sarke commented 4 years ago

That's not TimescaleDB / Postgres though.

winsento commented 4 years ago

@Sarke why not? The base image from official telegraf alpine + binary from this post https://docs.timescale.com/latest/tutorials/telegraf-output-plugin

Sarke commented 4 years ago

Oh, my bad. I'm not using this repo anymore, try this one:

https://github.com/Sarke/telegraf

docker pull sarkedev/telegraf-timescaledb:1.14.0-with-pg-alpine