All checks were successful
continuous-integration/drone/push Build is passing
16 lines
436 B
Docker
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"]
|