Skip to content

Commit

Permalink
Add sql-exported config files
Browse files Browse the repository at this point in the history
Signed-off-by: Neaj Morshad <[email protected]>
  • Loading branch information
Neaj-Morshad-101 committed Aug 8, 2024
1 parent 54bca5a commit 193ec60
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@ 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

# Make image and copy build sql_exporter
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
LABEL maintainer="The Prometheus Authors <[email protected]>"
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
Expand Down

0 comments on commit 193ec60

Please sign in to comment.