Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit 9bdb4f1

Browse files
Merge pull request #5 from quintoandar/DBRE-2100
Adjusting DockerFIle
2 parents d02aa79 + 0b528f9 commit 9bdb4f1

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

Dockerfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
FROM golang:1.16 as build
1+
FROM golang:1.19.0-alpine as build
2+
WORKDIR /opt/
3+
RUN apk update && apk add make git && git clone https://github.com/quintoandar/rds_exporter.git
4+
WORKDIR /opt/rds_exporter
5+
RUN env GOOS=linux GOARCH=386 go build
6+
RUN chmod +x rds_exporter
27

3-
COPY . /usr/src/rds_exporter
48

5-
RUN cd /usr/src/rds_exporter
9+
FROM alpine:latest
610

7-
FROM alpine:latest
8-
9-
COPY --from=build /usr/src/rds_exporter/rds_exporter /bin/
10-
# COPY config.yml /etc/rds_exporter/config.yml
11+
COPY --from=build ["/opt/rds_exporter/rds_exporter", "/bin/" ]
12+
COPY config.yml /etc/rds_exporter/config.yml
1113

1214
RUN apk update && \
1315
apk add ca-certificates && \

basic/scraper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/aws/aws-sdk-go/service/cloudwatch"
99
"github.com/prometheus/client_golang/prometheus"
1010

11-
"github.com/percona/rds_exporter/config"
11+
"github.com/quintoandar/rds_exporter/config"
1212
)
1313

1414
var (

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/quintoandar/rds_exporter
22

3-
go 1.17
3+
go 1.18
44

55
require (
66
github.com/aws/aws-sdk-go v1.36.30

0 commit comments

Comments
 (0)