refactor mariadb

This commit is contained in:
2020-07-05 14:36:47 +02:00
parent c1ed745a28
commit 0edc02eb37
7 changed files with 108 additions and 14 deletions

View File

@@ -0,0 +1,15 @@
# vim:set ft=dockerfile:
FROM debian:buster-slim
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-mysql-exporter", "--config.my-cnf", "/etc/prometheus-mysql-exporter"]