This repository was archived by the owner on May 12, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 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
2
7
3
- COPY . /usr/src/rds_exporter
4
8
5
- RUN cd /usr/src/rds_exporter
9
+ FROM alpine:latest
6
10
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
11
13
12
14
RUN apk update && \
13
15
apk add ca-certificates && \
Original file line number Diff line number Diff line change 8
8
"github.com/aws/aws-sdk-go/service/cloudwatch"
9
9
"github.com/prometheus/client_golang/prometheus"
10
10
11
- "github.com/percona /rds_exporter/config"
11
+ "github.com/quintoandar /rds_exporter/config"
12
12
)
13
13
14
14
var (
Original file line number Diff line number Diff line change 1
1
module github.com/quintoandar/rds_exporter
2
2
3
- go 1.17
3
+ go 1.18
4
4
5
5
require (
6
6
github.com/aws/aws-sdk-go v1.36.30
You can’t perform that action at this time.
0 commit comments