Files
docker-images/_apps/mariadb/mariadb-prometheus/Dockerfile
Udo Waechter 4b2f5d8c9f
All checks were successful
continuous-integration/drone/push Build is passing
merged
2024-04-21 17:02:48 +02:00

16 lines
436 B
Docker

# vim:set ft=dockerfile:
FROM cr.lan/debian-stable
RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends \
prometheus-mysqld-exporter; \
apt-get clean -y; \
rm -rf /var/lib/apt/lists/*;
RUN set -ex; \
echo '[client]\nhost=localhost\nuser=prometheus\npassword=prom01\n' >/etc/prometheus-mysql-exporter
EXPOSE 9104
CMD ["prometheus-mysqld-exporter", "--config.my-cnf", "/etc/prometheus-mysql-exporter"]