Skip to content

Commit

Permalink
Update Dockerfile, deprecated statements updated
Browse files Browse the repository at this point in the history
  • Loading branch information
zas committed Nov 27, 2024
1 parent 880e3fe commit 01e1510
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
FROM metabrainz/consul-template-base:ct_0.33.0-jammy-1.0.1-v0.4-1

MAINTAINER Laurent Monin <[email protected]>
RUN apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold"
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN rm -f /core

ENV TELEGRAF_DEB telegraf_1.32.3-1_amd64.deb
ENV TELEGRAF_DEB=telegraf_1.32.3-1_amd64.deb
RUN wget https://dl.influxdata.com/telegraf/releases/${TELEGRAF_DEB} && dpkg -i ${TELEGRAF_DEB} && rm -f ${TELEGRAF_DEB}

ENV INFLUX_SERVER "http://localhost:8086"
ENV INFLUX_DB "telegraf-docker"
ENV DC "testing"
ENV HOST "telegraf-docker"
ENV INFLUX_SERVER="http://localhost:8086"
ENV INFLUX_DB="telegraf-docker"
ENV DC="testing"
ENV HOST="telegraf-docker"

RUN mkdir -p /etc/telegraf/telegraf.d
COPY files/telegraf/telegraf.conf /etc/telegraf/
Expand Down

0 comments on commit 01e1510

Please sign in to comment.