From 193ec60426f1e2456a3953ecb3b368735a8a8379 Mon Sep 17 00:00:00 2001 From: Neaj Morshad Date: Thu, 8 Aug 2024 13:20:50 +0600 Subject: [PATCH] Add sql-exported config files Signed-off-by: Neaj Morshad --- Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ed1619c0..c1cb6367 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,9 @@ ARG ARCH="amd64" ARG OS="linux" FROM quay.io/prometheus/golang-builder AS builder -# Get sql_exporter -ADD . /go/src/github.com/burningalchemist/sql_exporter -WORKDIR /go/src/github.com/burningalchemist/sql_exporter +# Get sql_exporter fork +ADD . /go/src/github.com/kubedb/mssqlserver_exporter +WORKDIR /go/src/github.com/kubedb/mssqlserver_exporter # Do makefile RUN make @@ -12,7 +12,10 @@ RUN make # Make image and copy build sql_exporter FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest LABEL maintainer="The Prometheus Authors " -COPY --from=builder /go/src/github.com/burningalchemist/sql_exporter/sql_exporter /bin/sql_exporter +COPY --from=builder /go/src/github.com/kubedb/mssqlserver_exporter/sql_exporter /bin/sql_exporter + +# Add kubedb configuration files to /etc/sql-exporter/ +ADD kubedb /etc/sql-exporter/ EXPOSE 9399 USER nobody